Factor static routes into static.py. Closes #239.