Lua code gen

Repetitive `cLuaState` methods are generated using a Lua script that is called as part of Bindings' generation, using ToLua as the Lua engine.

@worktycho what do you think, is this an okay codegen solution?