Implemented a "TemplateBasedProvider" and adapted Disqus provider to extend it.

Also added unit tests.