cleanup protocol and connection_manager

Signed-off-by: Maksim Melnikau <maxposedon@gmail.com>