travis CI integration

Please review. Note that there are lots of commits because travis builds only trigger on git push.
The basic setup is taken from https://github.com/moteus/lua-travis-example, augmented with a pkg-config file based on http://www.linuxfromscratch.org/blfs/view/svn/general/lua.html.
All scripts are transformed to comply with the indentation of this repo (4 spaces per level).

If you decide to integrate this you need to change the travis links to your own account, e.g.
https://travis-ci.org/istr/lua-gumbo.png?branch=master -> https://travis-ci.org/craigbarnes/lua-gumbo.png?branch=master.
Couldn't we just use packages for this? Ubuntu has packages for Lua 5.1, Lua 5.2 and LuaJIT 2.0. I think if the tests pass on LuaJIT 2.0, they'll almost certainly pass on 2.1.