More efficient graph.parentWays

The old graph.parentWays took anywhere from 2 to 20 seconds total per page load for me, increasing exponentially with the number of entities (decreasing zoom level, panning). This should be exponentially faster (for example 74ms instead of 20s). If necessary, it can probably be optimized further significantly. Makes loading snappier.