Fix buffer offset error, refactor _receive()
Refactor send()
Merge pull request #50 from oleksiyk/connection-refactor

Fix buffer offset error in ConnectionManager._receive + some refactoring