Added triggers for testing. Now using triggers to test the event-based stuff and event-chains. Refactored some code to allow extension of Pause and Resume methods of ZoneProgram.