Updated Lua Interface

- Added per-object scripts
- Added OBJECT type in Lua
- Updated update order