Include ways into bounds calculation.
Support relations. Not yet tested.
Intermediate state.
JavaScript mechanics works.