JavaScript library and protocol for receiving live updates of RESTful resources