Feature/legend show only used modes

I think this would be better as `routes.filter(route_type=route_type).count() > 0`; that should result in a more efficient DB query.