Added require and turned the modules into AMD modules
Merge branch 'requirejs' into develop