AngularJS module to keep data in localstorage until not needed anymore