Starts implementation of sending email on game end

EmailController is now much more extensible

Authors: nfbrown, Sam Carlberg