DATAMONGO-790 - Ensure compatibility with Spring Framework 4.0.0.X.

The GenericApplicationContext doesn't refresh automatically in Spring 4.x we thus we have to call refresh manually.