Enhancement: Add a middleware to authenticate public share requests

Added a new middleware to authenticate public share requests. This makes it possible to use APIs which require an authenticated context with public shares.

https://github.com/owncloud/ocis/pull/2536
https://github.com/owncloud/ocis/pull/2652
https://github.com/owncloud/ocis/issues/2479
