Add option to customize max_entries via store_opts

This only get's passed via store_opts to the actual MemoryStore.
It is ignored for RedisStore and other stores. Added guard that makes
sure max_entries isn't less than 1 as we need a dict that can hold at
least one key/value pair.