First go at removing lua_State from POCOs.

This has been bugging me for quite some time. I am not a big fan of having the lua_State integrated within our core classes. This is the first commit of what may be many, depending on how well this is accepted. I have run this already, and had no crashes.