Added base class for luastate.

This allows LuaAddon and LuaConfig to share the same LuaState.