CircleCI: Pull and cache images needed by tests

Pull them beforehand to ensure that tests don't timeout in case Docker is
slow for some reason. Cache them to speed up this process.