configure which redis connection to use

allows the statemachine to use a connection to a redis instance not running on localhost