update: convert upserver and client from LWP to pthreads