bug 945748 - PageMod.contentScriptWhen tests

test that the PageMod is attached at the right time, depending on the
contentScriptWhen option value.
Merge pull request #1334 from zombie/945748-test-csWhen

fix bug 945748 - PageMod.contentScriptWhen tests @r=ZER0