Any call to local storage must be wrapped inside a try catch

Issue:https://github.com/sdether/josh.js/issues/24
CodeReview: Aaron Mars, and maybe you?

Wrapped any call to local storage methods, in a try catch. Browser storage mechanisms such as localstorage do not work in Safari Private browsing. This error is causing MindTouch methods to fail, thus causing alot of components to stop working.