Fixes #44: Now catching private browsing and sending and error to the error callback. Added a test with localStorage stubbing for this to work.