Fix emit events on 'window' and 'document' objects
add tests to dispatch events on 'window' and 'document' inside iframe
Merge branch 'fix-window-emit-event' of git://github.com/eduardo-matos/dojo