Decouple Redis commands from CLI context

This commit refactors redisCommand() to accept a Config struct, which
holds the envredis configuration.

This will make it much easier to test individual features, or replace
cli.go with another command-line library if necessary.