URL templates in JSONAPI responses, more refactoring to support this