Implemented claiming and password forgotten.

This removes the dependency to the account component from the core
as far as claiming and password forgotten goes.
Fixed 2 bugs and one papercut.

* Better deprecation warnings for old account functions.
* Fixed setting expire dates for a login session.
* Fixed html entities in text email messages.