Replace all use of redis to do ipc by socket, it's simpler, faster and more reliable.