Add retract API call


I just noticed I never made a PR for https://github.com/drltc/bitshares_toolkit/commit/e16c69b3107fdbd19d88b542cadca432bf81c8fd and it was never merged.

This pull request consists of that commit rebased onto my previous PR #987, with a more descriptive commit message and a new commit date.

This still needs testing!