Resolve uri relative to document.location if any
Merge branch 'cookie'

Conflicts:
	lib/xmlhttprequest.js