Remove the Lua hook engine (breaking); migrate hooks to the JavaScript engine