Working on a MongoDB service.

It is mostly already implemented in master. Just needs a bit more fleshing out and some tests. Refs #3, #7.