Re-architecting how app.js initializes router and routes