Email sending and templating

Using nustache
A few bug fixes.
Global admins are now exempt from password strength checking.