Adding connection hook for mongodb
There are three leading params we don't care about, so the hooks are
using shift to discard.
Merge pull request #2053 from calfonso/master

Merged by openshift-bot