Bug 874502 part 2. Fix addon sdk to not assume synchronous closing of windows. r=mossop
Bug 874502 part 5. Fix JP test-windows to handle on{activate,deactivate} after close(). r=mossop