build/travis: Build all branches; if pushed to non-origin repo, travis-build from repo pushed to.

The code blob should be abstracted to a variable-setting function if
this is to be used for other projects (server, explorer, etc.).