Split out router and app init.
Split out utils.