Added support for CMake

This adds support for CMake and I also cleaned up some whitespaces and also fixed the Readme.

Now this will generate a `convnet.so` shared library.

Tested on OSX.

And here is the diff with the whitespace changes ignored:

https://github.com/dnouri/cuda-convnet/pull/4/files?w=1