Update the API for tracker item 156 (debug mode) and for resume / pause (interfaces, not fully implemented).

Add CCGS support for generating code that references the equation ID, to support debug mode.
Refactor the error handling code in CIS to allow reasonable error messages to be presented by debug mode.