Reduce URI parsing to a single regular expression.

Simplification is teh way to go.  The regex is scary but the rest of the
functionality is easy to grok.