New layer type, behind-the-scenes changes

Only noticeable difference is the new layer type, Line.
Everything else is just behind-the-scenes changes that make the dev's
lives easier.