Providing Bulk indexing method for the SearchEngine.

Also refactoring the batch and bulkInsert methods for mongo repository
to return the new IDs created; this is useful in drafting SearchDocs
that are to be fed for multi-threaded scenarios.