logging in module `manager `

To module `manager `:

* add logging support
* add plenty of logging for code that deals with threads and socket (or socket file)
* add library `six` (vendorized)