Rest: events instead of callbacks for errors
Rest: start-request and end-request events