Made parsers call methods on `osmdata_t`.

This is the first step in removing common code from the output
types and adding it into a common "management" layer which is
capable of supporting multiple output types.
Add, modify and delete nodes from mid directly rather than via out.
Almost removed all mid interactions from out way functions.
Removed calls into mid from out for relations.