Refactored the runtime and translator to match the OCR event-driven paradigm.

User defines cncEnvIn/cncEnvOut functions as the prologue and epilogue
to the graph execution.

Updated the simpleTest and rangeTest examples to work with the modified
runtime.