fixed incorrect edit route in restify(), fixed error when no default actions are passed