Event Manager

Added event manager to trigger system and gcode commands.