Changed interface of collectionscanner to support collectionscan options.
Added CollectionScanner implementation which works with *Repository classes.
Added interface CollectionWriter and its implementation CollectionWriterRepository which works with *Repository classes.