Make lazy instantiations of nsIURI appropriate
Fix targetDocument is undefined
Add arakahuku-thread-unload notification
Add URI-specific methods to get document param