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. Print should be removed.