Fix urlFor with regex paths and add unit tests to protect against regressions

The regex parameter code was incomplete and you could not generate urls for regex-based routes.  This pr fixes that and unit tests everything.  :)  This is step 2 towards #25.