Added ability to update collection document metadata.

Added utility functions to waiting for indexing - as extension to IDocumentStore and member of Migration.