DATAMONGO-479 - Add support for calling functions.

Fix broken tests by avoiding initialization of MongoRepositories on package as this would trigger index creation which is likely to fail on older server versions.