Extract out common util from ComplexWidget

Allows classes that extend dGrid to use the util.
Stuff in ComplexWidget doesn't play well with dGrid
Modify HTML place holder functionality
Updates to dialogs