[ARCH] Improving the Dialog API

This pull request addresses the following issues in the Dialogs API:

* #258: Now the templates that don't use a template are templatized. This is done by using a generic template for all, a JSON object to define the variables for the default dialogs and a title and message parameters that replace the template variables if defined. The template is rendered and then the dialog is generated. This also adds a new function to create a new Dialog by passing an object instead of using the pre-defined ones.

* #3077: All the show dialog functions now return a new Dialog instance, which has the promise the dialog element and a close method. These can then be easily expanded to add more methods.
Since the buttons are links and there is only one button at the left side, by removing the `float: right` and aligning them to the right I was able to be displayed in the order they appear in the template.

* #1089: Since now the buttons are displayed in the order they appear in the template, by going back to the old styles I was able to reverse the order of the Save/Cancel buttons just on windows.

I can split the request if needed, but since all are related to the dialogs I thought it was better to address them all together.