Set theme when sending email

Required to allow overriding email views in themes.
Auto login via cookie. Closes #72