improve communication daemon

* adopt arduino communication protocol
* implements configuration for different environments