add working agent_auth to windows

Add agent_auth functionnality to Windows.

Note that this is the same level of functionnality currently provided on UNIX: there is no authentication, resulting in poor security.