Rewrite of communication system, using ØMQ.
Fixed merge conflict.