Bug 1088617 - Handle nsIURIWithPrincipal in nsPrincipal::CheckMayLoad. r=bz

This mimics the logic already inside nsNullPrincipal::CheckMayLoad.
Bug 1088617 - Remove nsIScriptSecurityManager::CheckSameOrigin. r=me