Travis: add notifications for e-mail and irc

Destinations:
- mantisbt-cvs mailing list
- #mantisbt irc channel

Build failures are always sent, and build success only when status
changes to reduce spam.

Fixes #16175
Travis: reorder sections within build script
Travis: added before_install for submodules init