Improved resolving of Spring's application context to enable extensions to run also in non-servlet environments.

An additional bean, the ApplicationContextProvider, can be considered via Spring's component scan configuration when the application context is initialized by a setup which does not depend on a servlet container.