Adds REST functionality to calendar.