Add HTTP API

Removed the dependency on `travis-core` and added a HTTP API. That way we can extract travis-build into its own app and the worker (or hub) can call this.