Introduce create callback

The create callback will be called, as soon as the window for the
document is created, but before any scripts are executed in it. This
allows one to fix the window object with custom functions and missing
jsdom properties without patching jsdom.