Changed handling of incoming messages to be saved directly to Redis using Lua script