Localstorage fallback

adding local storage fallback.

cc @calvinfo @ianstormtaylor