Use localStorage instead of cookies

Working with cookies require jQuery plugin and are useless transfered in HTTP headers.