Updates for windows

* Change the extern initializors to occur when the application starts
* Prompt for preferences on first run
* Setup the cloud URL on first run
* Fix makefile for windows XCopy.