Started migrating to CMake

Added CMakeLists.txt to main parts of the project.
Now we can compile the whole codebase as follows:
  1. mkdir build & cd build
  2. cmake path/to/repo/root & cd path/to/repo/root
  3. make

TODO: Add symlinks to created binaries.