Support for configuring agent on Windows

Only tested on Win7/2003, but should work on 2008.

I couldn't find a decent way to enable cron-style runs on Windows with the scheduled_task type, so the agent must be run as a service.