Use localStorage instead of cookies

Closes #84