node-restify based REST framework with FSM inspired architecture