Consolidating MasterDetail samples.
Updated for Xcode Beta 2.