Introduce smarty function locationFlag
Streamline smarty function location output
Make sure locationFlag uses cache
Add "partNamer" functionality to location helper
Add flagLabeler