replaced use of $q with deferService. fixed minor bugs
replaced JSPs with HTMLs pages
removed unserializable MailSSLSocketFactory from serializable MailAuthenticationToken