Make prefs writable in Lua, and add a rule store based on it.
Reformat code and add a LuaEngine to ActionChooser.
Proof of concept call to Lua from ActionChooser.