saving state of tiles across page refreshes

Added support for saving the state of the tiles in the grid across page
refreshes using localStorage