Added server polling and local cache.

We added server polling and local cache.