add support for mongodb repositories and documents #205