Set up CMake build, reorganized directories