Added abstraction layer for redirects. Removed dependency on service container. Fixes services.xml configuration.