Add support for bookmarks

Support local bookmarks. Also handle errors in load time - example is when
the localstorage cannot be used (iOS in private mode).