Rename *BoundingBox classes to *StyleBox.

This makes it more clear what these classes are actually doing.
Calculate line position for cues with their snapToLines flag set.
Finish the algorithm to position boxes when their snapToLines flag is not set.