move/delete directories (Fixes #234)

Pulled out calls to the mongo driver into a MongoWrapper trait which
puts everything into Task.

Additional tests.

This file should probably not be in mongodb directory since we want to use it for all backends. Right???