Add test framework

This adds a small test framework and updates all existing tests to use
it. Tests are now implemented using shell scripts and integration with
the build output is much improved.
Add test for tigrc compat errors
Add test for the main view
Travis speedup