url: Improve url module performance #3
This is a rebase of #1650, which is a stripped version of #1561 that does not break any compat.
As @petkaantonov commented he's short on time, so I went ahead and rebased the PR so it can be merged.
Thanks @petkaantonov for your hard work, hoping this can make it into iojs soon.