Refactoring controllers to dm-mailercli and dm-maileradmin