add mkdist -i and -c support; add some server tests (not included in the tar ball)