Fix RequireJs loader to return a promise from doLoad() instead of the deferred itself.
Add beforeInit() hook method in Application.
Update some comments in Application.createDataContainers()