Add smarty extension, based on SmartyPants library
Add documentation for smarty extension
Use smarty extension when building docs
Some fixes requested by @waylan, cleanup and tests improvements
Merge pull request #231 from mitya57/master

Add Smarty extension and use it for building docs.