Bug 1043648 Calling `window.stop` in page-worker's content script cause error in console

- Set `contentWorker` before add the listeners for `pageshow` / `pagehide`
- Unit test added
Bug 1042976 - TypeError: debuggee.runDebuggerStatement is not a function

- Used `exportFunction` in test addons
Merge pull request #1565 from ZER0/runDebuggerStatement/1042976

fix Bug 1042976 - TypeError: debuggee.runDebuggerStatement is not a function r=@jsantell
Merge pull request #1564 from ZER0/worker-null/1043648

fix Bug 1043648 Calling `window.stop` in page-worker's content script cause error in console r=@jsantell