Added template hooks in the JS template compiler. Attach to thook_<template hook name>. Use Echo() to echo HTML; access compiler instance with Template.tpl_{strings,bool}, etc.
tinyMCE.addI18n('en.example',{
desc : 'This is just a template button'
});