proposal for indirections/delegation

hi ben,

as it is hard to explain, I created a PR to show what I mean:

it solves the problem that the tray was manipulating the breadcrumbs DOM which was supported by the global event handler which also made the code very hard to understand for me.

I left comments to explain what I am thinking