Elgg/Elgg — pull request #525 by mrclay (2013-02-10 16:34:19+00:00)
Title: Move AMD logic to Elgg_RequireJS

Fixes module loading in subdomains
Avoids fatal if no module added before foot rendered
Avoids duplicate deps