Add simple utility method to rebase URLs

This is not as accurate as URIjs's rebasing, but should meet all our
requirements.
Add John Resig's HTML parser
Expose html parser as module.
Teach html parser about HTML5.
HTML parser: allow dash in attribute name
HTML parser: handle doctypes
Parse HTML ourselves to rebase links
Merge branch 'refactor-url-rebase'