Implement building with CMake.

Moved code for the cfacter executable under the exe directory.
Moved code for the cfacter shared library under the lib directory.
Moved the rapidjson code to be under the lib directory for now (probably belongs in a shared location).