Add TCP server class and cmd parser