admin template editor - refactoring and bug fixes

took a lot of the code that was written specifically for ebay (template
chooser, selection, etc) and moved it into templateEditor and made it
work for both campaigns and ebay.

temporarily hid the save as template box till we get that working.