localStorage and sessionStorage done right for AngularJS.