Changing use of EmailComponent to CakeEmail

Closes #320