move redis queue code to own library
move redis queue code to own library