added support for [next] method in handlers to allow usage with restify