Using localStorage instead of cookie storage by default

This is the pull request that we discussed by e-mail. Thanks again!