merged websrv-thread.c websrv-procc to one file