Decorate all functions/events.

This is part of a larger change, I am not done.