add batch writes in cache.

In this PR, batch writes is added to the in memory cache as mentioned in #182
One idea that comes to my mind is to make the cache the default entity that the rest of cadvisor will interact with and the cache can optionally manage another storage backend to which it will flush to based on various policies.