Bug 877478 - Move crashtests that now error-out to chrome tests. r=mrbkap

These crashtests now throw, because we run XUL tests in content, and they create
forbidden objects and fail the CanCreateWrapper check. Unfortunately, the
crashtest harness isn't set up to catch onerror. And even if they were, they
wouldn't be testing what they wanted to, because all of the relevant work here
happens in onload.

--HG--
rename : content/xul/content/crashtests/236853.rdf => content/xul/content/test/file_bug236853.rdf
rename : content/xul/templates/src/crashtests/330010-1.rdf => content/xul/templates/tests/chrome/file_bug330010.rdf
rename : content/xul/templates/src/crashtests/329335-1.xul => content/xul/templates/tests/chrome/test_bug329335.xul
rename : content/xul/templates/src/crashtests/330010-1.xul => content/xul/templates/tests/chrome/test_bug330010.xul
Bug 877478 - Add a SpecialPowers API for wrapping callbacks and callback objects. r=mrbkap
Bug 877478 - Fix mochitests with problematic callbacks to use the new API. r=mrbkap
Bug 877478 - Have SpecialPowers.addObserver modify the observe callback to wrap arguments. r=mrbkap

|subject| is quite often an XPCOM object that's not accessible to content.
Bug 877478 - Fix test to use SpecialPowers.{add,remove}Observer. r=mrbkap

This way, we get the callback wrapping behavior for free.
Bug 877478 - Fix tests that depend on creating verboten instances in content. r=mrbkap

XPConnect generally throws when trying to create instances of non-DOM objects
in content. Due to some bugs this has historically worked in certain cases, but
we're fixing those now. So we need to fix the tests that do this sort of thing.
Bug 877478 - Remove FullTrustSecMan junk. r=mrbkap

This stuff shouldn't be necessary anymore. The default security manager should
do the right thing given for script running in the scope of a BackstagePass.
Bug 877478 - Remove SetSecurityManagerForJSContext and related APIs. r=mrbkap

The only consumers here were the shells, which we've now fixed.
Bug 877478 - Move all consumers of GetAppropriateSecurityManager to GetDefaultSecurityManager and rm the former. r=mrbkap
Bug 877478 - Remove the machinery for security managers in XPCContext. r=mrbkap
Back out 022bc808586b (bug 845147) on suspicion of causing frequent intermittent oranges for list-simple-1.html by busting its reference case