Major changes to the login infrastructure

Please read PR #157 for more info. You may need to edit your configuration if you are using HTTPS-only login.
Merge branch 'master' of https://github.com/nerdzeu/nerdz.eu into login-patch
Better getSafeCookieDomainName

It now uses an homemade algorithm to retrieve the similarities between the domain names. Also added a note in the setup skeleton.
Merge pull request #157 from Robertof/login-patch

Major changes to the login infrastructure