Added localstorage state saving for entity graph.