Added aggressiveSync and storage type options

If flag aggressiveSync is set to false, we don't do a synchronization. Just take data from the cache.
Storage type is added to burry to support not only localStorage, but also other different types of storage