use path-to-regexp
remove as much global state as possible
simpler, still backwards compatible, api
Merge pull request #6 from juliangruber/path-to-regexp

Path to regexp