Fix bugs and cleanup editing a light state.
Formatting.
Fix/cleanup command editing.
Rename views.
Add links to edit commands and states.
Fix assorted bugs, add missing buttonGrid.html.