Lua 5.2 compatibility
Use lunit for tests
Add lakefile