Add windows userdata

This is a work-in-progress branch.

This branch adds userdata support for windows systems.
the nonce file is *surely* non-os-specific