Split out home.py. Minor fixes for #4.