Implemented HKConnection and HKServer classes