Put clipping logic in its own file so it can be used offline.
Render categories and subcategories rather than 'entity_types'.  Add a converter for backwards compatibility for trip plans that are already saved.