Added events and systems. Specifically events for changing phase
Fixed a test. Added error message when no event handler for Component