Tornado: DRYer templates, check url prefix
Flask implementation