Adding support for user context for symfony HttpCache

Moving most of https://github.com/FriendsOfSymfony/FOSHttpCacheBundle/issues/177 to the library.