merge in some monetas work for cmake
first work to port to opentxs lib
Merge pull request #2 from da2ce7/cmake_work

working towards using opentxs lib for opentxs-cli
compile on mac and windows
Merge pull request #3 from da2ce7/master

compile on mac and windows, modeled upon opentxs-server
[wip] fixing the 1-off read bug in string escape
[fix] style/const fix in runoptions
[wip] in middle of warning fixes size_t, errors
[wip] added cpp_safe_int (not done); rename drafts
[wip] broken cpp_safe_int to cpp+hpp, and test
[doc] doc for new cmake env; fixing warnings
[wip] working on safe int (templ) and Makefile