path_to_regexp_port

This is a quick and dirty port of Blake Embrey's path-to-regexp for JS