Added Segment, SegmentController and associated test.
Add segment map to detail page.