Added method Template\Factory::byId()
Fixed stray tab in template page list
Fixed template page list
Refactored template manager JS as jQuery UI widget
Refactored template delete so that it happens as soon as the delete button is clicked