Add the main router and move model/collection logic there