SERVER-15096 added modes to mongoshim. also added JS test and a number of test-related options.
Merge remote-tracking branch 'upstream/master'