Store the geometry instead of node references

This either stores the LineString or Polygon for a way, instead of the
node references.

Sometimes, ways are skipped, as the nodes cannot be found in the database, this is probably a race condition, that I have not been able to solve.