Move mult-part email to abstract class, updated unittest, and layout.