added restify() for publishing objects with restful handlers (experimental)