Add custom mailhost class.

The custom mailhost remembers sender and recipient for each mail
separately and provides utility functions to get mails grouped by
sender or recipient.

This is useful for blackbox-tests when multiple mails might be sent during one test.