add text filters

Add two filters: markdown_thumbnails, html_thumbnails. Those filters use
regex to replace images with thumbnails. The width of the thumbnails is
set to THUMBNAIL_FILTER_WIDTH which is by default 500.
Merge pull request #191 from relekang/filters

Add new text filters: markdown_thumbnails and html_thumbnails