move redis code to shared, replace my custom random string generator with node-randomstring