servercli: finish up payment flow. fix several bugs.