AMD refactoring, global use of dojo removed.
Refactoring by moving stuff into subdirectories of apps.
Improvements to validation