Localstorage instead of cookies

Also deleted some files that were no longer used.