clean up ShRes member names - add, flush, notifyAdd, notifyFlush;
add req.apiType for rest, socket, tcp;
fill in API function(req, res, cb);