proposal for Twig based templating

This PR is our base for discussions about Twig based templating.

Please see  [this Gist](https://gist.github.com/wuan/1b2f127f97ba10db3a6c#file-gistfile1-md) for futher details.