moved the event and model manipulation code into a sensible location.

removed the temporary "script" code.

Eliminated the need to call out to the shell to update the correct run
model.
committing another few changes to the correct run model code.  Now there is
code to serialize to a file.  Next step, deserialization, then doing the
file book-keeping from the global config.