Fix EZP-21661: Implement dependency management solution via requirejs (AMD)

Jira issue: https://jira.ez.no/browse/EZP-21661

Done. 
Updated documentation accordingly.