Add localStorage support

Add support of localstorage in addition to cookies. I think it have more sense to store this kind on information in localStorage rather than in cookies !

Here's a cookie :D

![36616918](https://f.cloud.github.com/assets/570317/297434/543b9368-9537-11e2-8cfc-ee5830e429f9.jpg)