Implemented JID+Code login

* Enable feature by setting config option 'enableCodeLogin' to true
* When enabled, all protected pages are only accessible for logged in users.
* Login is via JID + a one-time code that is sent to the JID during the login
  process.