Add custom email headers for repository and result.
Add custom email headers for repository and result.

This allows more specific filters on the emails based on the
headers and e.g. the build results.

Fixes #1577.

travis-ci/travis-tasks,travis-ci/travis-tasks,jantman/travis-tasks