Render line decorations

This adds support for `type: 'line'` decorations. Decorations of `type: 'line'` will add a class to the relevant screen lines.

Closes #2569
This is duplicated and should be somewhere more general. Not sure where to put it. @kevinsawicki please advise.