save/load kernel state in window.location.hash