Moved detail panel trail tracking from DOM to currentTrail variable
Removed check for source match between trail and trailhead.
Bugfix to fix detail panel reveal/hide.
Added fixDuplicateTrailNames(), refactored out makeTrailheadPopups().