Add figures as independent node types
This adds figure
as a node type, contained within figure_element
, allowing multiple figures to be grouped within a single figure element each with their own caption ("title") and label.
The relatively big change to the JATS exporter is mostly just to wrap the nodes and marks definitions in a closure containing the serializer, so the figure captions can be serialized independently.