WIP Remove API

Includes changes from PR #1086
Karma tests fail on my laptop
this change worked fine in other test files, like test.TxProposals.js. it passes in mocha in the shell and in the browser. why would it cause karma to fail?