Some Fixes

Removed some trailing "," which prevented the page from opening in IE?
Fixed <div .. /> which prevented the page from opening in IE?
Fixed issue in calculating tab counts.
Simplified QuerySetLogicalFilesWidget (no need for a store).