Add option to change email settings in admin section

Fix issue #7166
Remove duplicated definition and move OC.msg to js/js.js

Fix issue #7166
Hide SMTP options based on selected send mode

Fix #7166
Remove unused variables, add doc blocks and break lines

Fix #7166
Merge pull request #7174 from owncloud/issue/7166

Add option to change email settings in admin section