introduce ConnectionManager
add variable manager
add connectionManager variables
add disconnect/reconnect commands