Features/revert logging changes

* [x] Revert the to glog
* [x] support 1-3  missed ping
* [x] support more than 4 missed ping and reconnect cycle (tested by disconnected my wifi 5 min)
* [ ] Update the test suite with the latest changes