CXX-390 Use mongodb_uri to extract process port

Just a port. localhost is hardcoded into the examples. I would say this works rather poorly when MO is running elsewhere.