Eventos (ajax e modal)

Inclusao de eventos beforeOpen e afterClose. para ajax, os eventos
beforeLoad, onError, onSuccess