Win32 port and other fixes

This pull request is important because it contains a lot of code and features for the 14.01 release. It is also important to build new features on top of this code to avoid diverging branches. Also, all of the wiki documentation is based on this code.