Autoredirect if referer origins from same domain

This fixes https://github.com/owncloud/mail/issues/179
Remove uneeded import
Show a spinner in case JS is not yet properly loaded
Open links in new tab
improve styling for link redirect page
make redirect page work on mobile as well (remove wrapping divs + indentation change)
try to make redirect work again
close the session in the proxy controller - enables parallel download
fixing auto redirect
adding smtp detection

proper setup smtp parameters as taken from IspDb

implement proper entity account

TestMailAccount is now testing the method toJson()

use account's smtp parameters to send emails

adding manual account creation

move saving of the account to the controller level
Merge pull request #192 from owncloud/show-no-referrer-warning

Autoredirect if referer origins from same domain
Merge pull request #198 from owncloud/use-smtp-from-ispdb

adding smtp detection
Adding protocol handler