History feature implementation

Fixed services data structure bug, it was one string in a list instead of a list of services.
Had to implement Redis COPY in Lua.
Leftover debugging.

BTW for me above change is questionable as it reduces readability. I would like to ask you not to change code I write in this manner it just makes it harder for me.