Merge pull request #1 from 0x7f/CommunicationController

fixed compiler errors
Merge pull request #2 from 0x7f/CommunicationController

Communication controller cleanup
added some comment and source for threading
added loopback sniffing capture
added AcceptConnections while - to make a reconnect after connection lost possible
common socket names + detail log
main test case
socket shutdown only in sendData needed + removed scopeSocket implementation
fixed buf stackoverflow + removed scopeSocket comments
fixed receive condition + added comments / log
fix receiveData conditions