Working towards Windows build

This PR is for tracking the latest work on #103 and #134. It is not ready to merge.

Since the work is to make `nupic.core` compiles under Windows, I've set up the CI for VC and MinGW at https://ci.appveyor.com/project/utensil/nupic-core , for details please refer to #134 .

@rcrowder Let's continue the discussion here.


If we can avoid including Windows.h we can use an alternative workaround for this, and not globally apply the NOMINMAX option. I believe it only affects Random.hpp so worth using an alternative in this case.

I plan to have a look at the build process soon. Just need to discuss requirements, and cost?, of Continuous Integration solutions. And what changes will be required with CMake lists, and whether we use the MS VC compiler for C++0x or stick with a gcc version.