Added event classes for Circuit.
Added event support for Circuits and tests.