Map content parts

Not completely done, missing mapping of attributes, and possibly proper handling
of sub-parts