Add mailing feature and refactor configuration

This refactors the configuration to use 'rc' (see
https://github.com/dominictarr/rc).

Also, we're now sending emails :) For email bodies we're using a
mustache template that  can be configured via the `template` variable in
the configuration file's `email` section.