Added template.
Simplify template interface.
Updated interface of template functions.
Merge pull request #81 from mailgun/roman/template

Added templating.