Using Travis CI

This will allow us to pre-screen PRs. Also, tests are now run on
both 2.7 and 3.4 by default. Several compatibility tweaks were
introduced in this commit to make sure the first build succeeds.