Dialogues array was being sorted by start time instead of end time.
Set xmlns and version attributes on DefaultRenderer's SVG element.
Implemented ASS draw - m, l and b.