Loading In External Data is working

When passing an url as the data attribute, the data is loaded correctly. The data attribute can now also be a function. If that function returns a promise it will be handled correctly. This code introduced a "loading" state into the form.