Implemented a bit of LuaMain

Also added lua5.1 to the project
Ooops, remove that
Merge pull request #4 from Nuke928/dev

Implement a bit of LuaMain