Update to Version 1.8

Use localStorage instead of cookie
Code refactoring
Merge remote-tracking branch 'origin/master' into gh-pages