Use routing for front page

This is one step toward using a single script for routing.