added somewhat hackish host selector for httpclient, plus startup script tweaks for logging