Added logic to not send empty messages to server
Added redis port and host to the configuration files
Added resetUserCount api function
Refactored redis to seperate data/publish singular connections