Refurbishing - separated libraries into subprojects, made a neat CMake project structure.