Reimplemented DBAL cache solution, created factory to provide gateways with a CacheProvider object provided by the ORM EntityManager. This way the configuration of the cache can be changed, but none of the code used to provide the cache to other services will need to be changed.