Implemented email backend. Fixed some stuff.