different internal handling of relation membership

this allows to reduce the _.clone of all nodes, which results in a
~10% speed up for large datasets
simpler API (module exports as a plain function)

old `.toGeojson` is still available as a fallback.