Refactoring and some tests.
Switching evaluator to use expression events.
Fixes for parameter update callbacks.