assorted minor cleanups

mostly cleanup the cogserver commands, and other minor things too.