API overhaul, and a few bugfixes
Merge pull request #35 from CounterpartyXCP/develop

API overhaul, and a few bugfixes