make mandrillmessage and inner classes serializable