Added GETMESSAGES and CLEARIDs commands and functionality with server