This is just a cleanup work to hide some of the private state of ReplSetTest so it is easier to encapsulate and add new logic. Also enables strict mode.
I copied this from repl/repl9.js. Turns out this works fine for master/slave but fails in replica sets. Test is disabled until I can submit a fix.