Offline web application with local storage replication and reconciliation