cleanup some files and move init logic to app.js