Moves class declarations to the SVG defs. Adds an end barline at the end.
Loads of good stuff. Renders bass clef as well as treble. Optimises multi-staves. Automatically detects end if not given settings.end.