Cache REST queries in local storage and js with CRUD interface