When wiring up Mongo persistence, can supply a delegate to return a connection string (in conjunction with the exisitng connectionName). (Cherrypicked from v4 branch)