Fix many association script (bug in SonataMedia Gallery)

Change attached events in field_dialog_form_add in order to be delegated instead of being direct.
A bug occured when the creation modal needed more than one step, in Sonata Media Gallery -> addMedia for example

With this fix, when the modal refreshes its content with a new form/a, the new nodes have their events click or submit caught.