add template_success and template_failure to notifications

See travis-ci/travis-ci#1332. Before merging check that it corresponds with the final implementation of travis-ci/travis-core#368.