tidy up redis config
Pull out helpers into their own file
Set debug mode on