Tabbed case detail

See corresponding PR in commcare-odk.
I added test, but an XML example would probably help. Added that (search for "nested details").

Yes, the idea of detail-select and detail-confirm stays the same, and either kind of detail can have nesting (from the parser's perspective. In practice, using a nested detail with detail-select will break the UI.)