start making thtp generic, and move unixy server stuff to util