[WIP] Start work on attributes and child resources

This starts to dip its toes into implementing the mapper DSL.