Add support for async response to widget js.

Add support for async response to widget js.

widget.js trigger method might use support for a promise response instead of just false. For some cases we might want to prevent the action after the user has confirmed it through a modal window or cancel it after an AJAX call failed.
An example would be the drag and drop from the sortable plugin that might update the content only if the user confirms that action.