Add more State
Implement more of State, including luaopen functions