Add config debug value
Implement asyncore + proper logging