Added event propagation and function api

Events now also fire on behavior controller wrapping the actual
behavior. Methods on loaded behavior can be safely called through the
execute method on the behavior controller.