changed from JSONP to regular calls; indexeddb and indexedshim to store latest responses for conditional API calls;