Redis support

Right now it's a bit of a mess, tomorrow I will organize this code, basically I need to add redis support when some pins are edited/deleted etc, also some front end issues,