Replace Data and Map icons with text.
Add a "Legend" button when the topmost layer has a legend.

Clicking the button opens the legend URL in a separate tab.
Merge pull request #324 from NICTA/legend

Add a "Legend" button when the topmost layer has a legend.