WIP: switching to cmake.

Refactored the directory structure in the process.