More tidy up in check_hostname and better comments
Remove code that checks whether the manager was given as a hostname or IP address
Get agent-auth working on Windows again