Api cleanup

Ruben's cleanup of opentxs api lib