Added a scheduling method for the keep alive.
Added the possibility to overwrite the username in the
AuthenticatedSession.