(CFACT-24) Implement logging in cfacter.

Adding log4cxx to the build.
Adding boost to the build.
Implementing more logging when resolving facts and when failures occur.