* WIP #991 * WIP #991 wait for mongo to listen on the given port * WIP #991 refactored to make more testable * WIP #991 fixed port bug * WIP #991 added test for mongodb start race cond