Removed callback api for agent. Implemented nice message api for communication with the user interface client