First attempt at running tests on Travis-CI

Please hold off review until this PR turns green! It's likely to change a lot as I iterate.