introduce SessionMiddleWare to control session handling via an annotatio...

...n

refs https://github.com/owncloud/core/issues/11566

@LukasReschke @Raydiation THX
Mhm. Okay - apparently we cannot fix that for `afterController` but we can for `beforeController` ;-)