Add support for build_state in notification templates

`build_state` in notifications (e.g., IRC, Campfire, Hipchat)
resolves to build result ('passed', 'failed', 'errored', 'canceled').

This addresses https://github.com/travis-ci/travis-ci/issues/2032