Added events to replicaset for ha and ping and added test coverage
Cleanup of ha.js
Merge branch '1.4' into 3.0