Added support to specify loadOnStartup.
Moved function to retrieve the environment to RichServletContext.
Merge pull request #356 from dozed/2.2.x_2.10

Added support to specify loadOnStartup.