WINTERMUTE: Refactor some bits to use TransformStruct
WINTERMUTE: Bilinear scaling.

Refactor scale(), factor out actual mapping algorithm, add bilinear
scaling