Adds persistence via cookie. Resolves #6