refactored mongos state to prototype
Finished up refactoring mongos to use prototypes