Add MessageRelay struct.

This refactors some of the bits in failmail.go into something we can
break out and test independently.