Added openModal function to open dialog with a resolving/rejecting promise

Added an openModal() function to the ngDialog service that opens a dialog and returns a promise that is resolved when the dialog is closed with the (new) scope function confirm() or rejected when the dialog is closed using any other means. Also updated the docs to include this new function.