move signup code into libkb
cleanup interface
where to find the socketfile