Added a bunch of code for email composition. Also added actions for compose and resume buttons.