Add windows userdata

This is a work-in-progress branch.

This branch adds userdata support for windows systems.
I ran some tests and not having git didn't cause any issues. I haven't heard back from @fwereade if there's any corner cases; perhaps you could try to catch him as you'd have more overlap.