Big refactor

Moved chatbot into its own file, renamed handlechat to chathandler,
implemented a message queue, and some other stuff