Simple AngularJS service to persistently store an object to HTML5 storage