Make the session available as early as possible
Add some comments
Merge pull request #8686 from owncloud/session-early

Make the session available as early as possible