Autoclose bbcode

I don't have the enabling/disabling of the button, or updating it to show the text it'll insert, but I think it's probably useful even as is. It'll take me a bit to figure out an efficient way to watch text change and update the button, especially for long posts and in the presence of editing.

Also, no tests yet! :blush: