A local-storage wrapper and sync for AngularJS