Added a fix for document.close().
Added a fix for document.close().

Previously, 'load' wasn't firing on the window after all resources were
loaded after calling document.close().  Added a monkey patch to fix
that.

brianmcd/cloudbrowser,bladepan/cloudbrowser,bladepan/cloudbrowser,bladepan/cloudbrowser,brianmcd/cloudbrowser,brianmcd/cloudbrowser