BAP-4869: Investigate memory leaks by components

 - fixed memory leak in init-layout
 - fixed issue with mediator extend and loading order
BAP-4963: JS error on attributes form of workflow transition
BAP-4963: JS error on attributes form of workflow transition
Merge pull request #2339 from laboro/ticket/BAP-4869

BAP-4869: Investigate memory leaks by components
Merge branch 'master' into fix/BAP-4963
Merge pull request #2340 from laboro/fix/BAP-4963

BAP-4963: JS error on attributes form of workflow transition
BAP-4969: Impossible to upgrade platform if user has avatar
Merge pull request #2343 from laboro/fix/BAP-4969-master

BAP-4969: Impossible to upgrade platform if user has avatar
Merge remote-tracking branch 'remotes/dev/master'