configure which redis connection to use

allows the statemachine to use a connection to a redis instance not running on localhost
Merge pull request #2 from admazely/redis-connection

configure which redis connection to use