Implement JSManaged for DOM objects.
auto merge of #1591 : jdm/servo/jsmanaged, r=Ms2ger