databind to tlc converter bug fixes

wrappedApply wasn't working quite right.
sites - revert some templates to databind

Some of the templates are used with dialogCreate, which is used in a lot
of places and uses databind, so the templates were reverted for now.
controller - bug fix in loop

made a change yesterday to how some data was being stored and loop
didn't get updated to reflect that change.
sites tab - bug fix and enhancement

template id was being passed in wrong.
added a check to see what domain is in focus and highlight the
corresponding 'use domain' button.
tlc - tuning

Disable some debug.
Fix bug in tlc jquery plugin and add some enhancements.