Api change: Behaviors do not declare output events anymore, a behavior now is just a collection of functions with a name.