Replace all hard-coded occurences of user_id

It's better to use the explicit methods to get and set the user instead of fiddling with the session manually.

Related to https://github.com/owncloud/core/issues/12891 - first step to migrating the incognito mode. - More coming…

\cc @schiesbn @PVince81