[javascript] make inlinedform-added event bindable
$(form).trigger('inlinedform-added') was not usable since form
had no existence outside the inner callback.
Use the general CubicWeb object to trigger the event so it's easy
to bind a callback wherever it's needed.