Improve emoticons support
Code cleaning. Make BBCode plugin prefer single quotes over double
quotes.
Fix emoticons sometimes getting converted in code blocks.