EZP-20654: Use localStorage instead eZPageBlockState cookie to handle block states
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