fixed redis api impl
communication improvments

message now contains a message_id
referer refers last message_id