Unpolyfill localstorage.

Fixes #634.

The unit test now passes in Firefox when dom.storage.enabled is set to
false (if we care :)

Tested in Chrome, Firefox, and IE 6 and 7.