Allow to insert emojis at current character position

When user types or clicks on the tweet bock, we now keep track
of the latest caret position, so that emojis get inserted in
the right position. We make sure to append/prepend spaces
around the emoji if needed.