Added the ability to filter collections using the Criteria API
Added matching method to DocumentRepository
WIP added tests