Lots of half-baked changes.

I want to rip the design up a bit, so committing something where
HelloWorld on Win64 still works. It has memory leaks though.