Composer: Switch to using a dispatch table for buttons

Note: for now, it looks a little messy, but once I merge wrapSelectionInTextareaWith and insertIntoTextarea, it won't be. Promise.
Composer: Use formatting dispatch table for inserting uploads and pictures
Merge pull request #1409 from miksago/formatting-dispatch-table

Composer: Implement formatting bar dispatch table