Correctly place measure lines.
No need to recalculate base for barline painters.
Better display of alternate text.
Move repeat count.

Closes #303.
Only display alternate/repeat count space on lines which use it.

Closes #304.
Display count highlight in the right place.

Closes #305.
Measure indexes start at 1, not 0.

Fixes #306.