Rewrote tupfile tuplua-style.
Merged with master (forgot to update before branching originally).
Got it compiling on Windows with MinGW32.
Added .gitattributes to disable eol conversion.
I think these were missing changes from Windows, not really sure.