rewrote the password server code using the new clientgen.c client