Move image store backend specific code out of the cache code and move it to a separate interface to allow using the same cache code with containerd image store. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>