Add Travis CI support (and fix the tests)

I also fixed the the NullPointerException in the GitHubControllerTest.