Install composer
Refactor: define user and moodle on the app obj, rather than in view controllers.