Created by: tlindig
This add support for nested / stacked modals. So you can open one modal in front of a still shown modal.
This add support for chaining modals, that mean that mean, open new one and close current one with same button click.
This brings also some small optimizations.
This will fix: #11865 (closed) #4182 (closed)