Fix crash on zero-length lua files
Fix read from before beginning of stack
Switch from regular Lua to LuaJIT
Use spin controls for numeric fields in the style editor

Closes #1741.