rework autodiscovery code and defaults, with a config file in mind

Fix default server handling when a full server object is not available.

Improve error handing

Update config file documenation to reflect reality