Pass a JSContext and a reflector to RegisterBindings::Register.

This makes the generated code less dependent on the fact that all global
objects are Windows.
Move the call to RegisterBindings::Register into WindowBinding::Wrap.
Merge pull request #2820 from Ms2ger/RegisterBindings

Move the call to RegisterBindings::Register into WindowBinding::Wrap; r=jdm