Added mongodb support and tests for broker and result.

Documentation will follow.