EZP-20654: Use localStorage instead eZPageBlockState cookie to handle block states
(cherry picked from commit 2e2ffc1f24443b08840173858a0e3b00e1144ce2)
Fix EZP-20654: eZPageBlockState crashes page edition because the cookie reaches maximum size.

- Used pr 46.
- Using local storage if it is available on the browser and a cookie if not.

Closes #47
(cherry picked from commit 3ea5666bdb1e0ecba85b0e092f3bcf53ca65c7c0)