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