Controller patch

Prep for LayerControl. Check for TOC/Legend/LayerControl and only
populate custom LayerInfo arrays if the widget will be loaded.

Also add simple jshint task to grunt.