Fixed #217 activity stream in cache

(i) activity stream query will load from cache.
(ii) make new case which will look for new available activity
(iii) clearCache() function will clear all the cache