refactored controller.js to component files

the make.sh recomposes them into app.js