Improving the Dialog API
Reversing the buttons order
Merged with master. Fixed conflict issues.
Updates to address the review comments
JSHint indentation fixes
Fixes after review
Merge with master
Merge pull request #3086 from TomMalbran/tom/dialog-api-improvements

[ARCH] Improving the Dialog API