Use MongoDbFactory to create GridFsTemplate

Update MongoDataAutoConfiguration to use the MongoDbFactory when
creating GridFsTemplate.

Fixes gh-1295
Merge branch '1.1.x'