Use some typed units in compositor and windowing.
auto merge of #2603 : mbrubeck/servo/units, r=pcwalton

This is a rebased, squashed, and updated version of #2444.