Introduce & propagate legendimageloaded-event.
Merge pull request #236 from marcjansen/230-clean

Introduce & propagate legendimageloaded-event (closes #156, p=@bjornharrtell, r=me)