newui: Refactor modal dialogs

In order to show a dialog you need to use:
<a  {{action 'showModal' <dialogType> <controller> <model>
<actionName>}}></a>

The parameter dialogType is the name of the template.
The file of the template must be inside the dialogs folder.

Also, the versions are now in a modal dialog.