Introduce the NativePropertyHooks struct.

This will be required for the cross-origin wrapper work.
Merge pull request #3175 from Ms2ger/propertyhooks

Introduce the NativePropertyHooks struct; r=jdm