Added singleton application context to wrap the IoC container.