Uses Lua 5.1 functions & fix indentation.
Adds test specs.
Adds travis and test running instructions.