-moved mail code to MailService
-mild refactoring of generate link in UserController
-fixed test for UserController
-added tests around MailService
-added test for AppConfig