Changes to directory structure, convert all js files to use amd/require pattern.