Check for mongo connectivity before initiating RS

This script is typically run very close to the point that the mongo
db is 'preinitialised' and/or started.

Wait for up to 5 seconds for a successful admin connection before
trying to add the replica set.

This makes for a happy automatic salt setup, but is generally useful