With the recent changes, we were leaving the installation of mongodb until too late. We now ensure that mongodb is installed early and we do this unconditionally.

(Cherry pick from master)

Fixes https://bugs.launchpad.net/juju-core/+bug/1350700