make dynamic loading of wmap and MailCtrl work. Refactor to inform angularjs to register the dynamic loading controllers and services