Small and large fixes
Small and large fixes

Remove uncompiled pieces of code.
Use logging instead of fmt.
Add defered resource releasing.
Process with go fmt and go vet utilities.
Update code to running condition.
Remove redundant connection from main loop that uses
same port with MasterProc and causes an error.

koder-ua/network_ping_test,koder-ua/network_ping_test,koder-ua/network_ping_test,koder-ua/network_ping_test