Add new API rev that does not require boost::asio.

Also slightly tuned ms comm loop and added a heartbeat config item.
Previous was hardcoded in the code as 5*60.