ALIEN-574: Move the appVersions in app.js and some refactor