Added api commands to send messages, get messages, and set flags for messages per user