finish server thread loop, add transactions with model

finish host protocol,
remove ResponseCodes.END, unnecessary

small changes here and there