layout: GC unused flow types
layout: Rename `FlowData` to `BaseFlow` to match other types
auto merge of #1310 : pcwalton/servo/refactor, r=pcwalton

Here are some refactorings. They depend on #1309, so need to wait for r+ on that first.

r? @metajack