Better promises.

Chain promises instead of passing context to keep the channel ID
available for the delete button.
Local jQuery.

Use a local copy of jQuery for better appcaching (to do).
Added mustache

Format pastes with (as yet uncompiled) mustache template.