make localhost the default for the server
a variety of changes to robustify this
Merge pull request #1 from greglandrum/master

some work to make this work on my linux box