AngularJS directive for persisting models in the sessionStorage and restore them on page reload.