Implement the new "tag/model/remove" APL call

This API call is used to fix #36.

This pull request also includes a fix for #32, as well as some pruning of obsolete code.