Use localstorage to save seed

As adressed in #41, saving the seed to the localStorage is less error-prone and easier and requires no callback or error-handling.