Implemented local data caching. Things are faster but offline mode still
doesn't work