Fix Travis tests

 - [x] Fixes some tests
 - [x] Adds a secure `GITHUB_API_TOKEN` env variable for travis which will get around the API limits that usually cause builds to fail

Alas this doesn't work for forks / pull requests unfortunately. I'm happy to put in a public read only token from a dummy account (@boxen-tester), but its obviously not good practice, thoughts? /cc @createdbypete