fix(embed): file embedding wasn't working for textareas

Issue was introduced in 8b358c5 by removing the line that applies the text
change in textarea.

The way to extend javascript from the rich text editor was to extend a view
in js/embed/embed. It has been refactored to the 'embed', 'editor' js hook,
in order to make js/embed/embed convertible to js file. The view extension
has been deprecated.

Text areas and rich text editors manage the insertion diferently. In order
to insert the content in the correct place, we allow rich text editors to
return false inside the hook to stop the insert, and apply it just once.

Fixes #6160
Merge pull request #6547 from sembrestels/embed-textarea

fix(embed): file embedding wasn't working for textareas
feature(amd): added some utils to Elgg_Amd_Config class

Utils are unsetPath, unsetShim and removeDependency.
fix(amd): removed elgg_require_js for backwards compatibility

Use elgg_load_js instead. Use elgg_register_js to define sync or async
javascript instead.

`elgg_register_js` manages registrations and loadings of async js better
`elgg_unregister_js` also unregisters async js
`elgg_load_js` also loads async js
Removed `elgg_require_js` function and uses
New private function `_elgg_get_external_file_from_map`

Fixes #6496
chore(amd): added tests for AMD module registering and loading