start of cleanup
Get things to compile
Sort includes
rv isn't needed
Fix compiler warnings
Merge pull request #3 from Floobits/lua-cleanup

Lua cleanup