Tchan

Review PR, do not merge yet please. Separates thread functionality such that there are threads which read from rabbitMQ and threads which process the messages.