Test for localStorage and postMessage

This is the same test that the shim does (minus the check for IE
versions) before showing the "unsupported browser" error.

To test with localStorage disabled, change the dom.storage pref.