Initial configuration of CMake

Also, cleaned of many build-specific files.