Factor out index template and default layout to individual files

Use HTML boilerplate as starting point.