I think it can just be moved to oae-activity/lib/rest.js