Started to rework the device_templates to use dialog vs the lightbox plugin and a general code streamlining at the same time. Too tired to give this the attention it needs right now.  I'll resume tomorrow. #350