DEM legend might work now.
Cleaned up some code in the legend section.

Still not loading images. And still not adding DEM to list. Maybe we
need to clear all the caches everywhere?
Legend Displays, DEM item does not.
Fixed "DEM in Legend" issue. Now using new REST service endpoint to retrieve legends for all layers.
Merge pull request #2 from DVAlhadeff/DEM-legend

DEM legend