EZP-20071 - Refactored a bit to make better use of request headers + cache user hash using Stash for Symfony reverse proxy