Develop

Added C++ API replacement for chai calls, needed for iDevice and Android lite-clients to be chai-free.
Bug fixes.