(master) Rewriting of eviction & expiration & write behind mapstore

Rewriting of eviction & expiration & write behind map store.