Rewrite url.parse.

It now uses one giant regex rather than logic in the code.  It is much
cleaner and smaller now.