Make proxy bindings generate trace and finalization hooks.
auto merge of #998 : jdm/servo/tracehook, r=metajack

Needs https://github.com/mozilla-servo/rust-mozjs/pull/38 and https://github.com/mozilla-servo/mozjs/pull/6. Fixes #819. Fixes #962.