Extract mongo integration code from repository

This is the beginnings to the refactoring talked about this morning. It moves low level mongo functions (eg. find, save) to a level below the repository.

@gtrogers
@maxfliri