Add support for external MongoDB

Partial implements blueprint external-mongodb-support

Change-Id: I738e46909d9fa69d99a43dec099adf531431bb08