Restored backwards compatibility with CMS 2.x.
Provide extra context variable to override template path.
Fixed error in tempalte.
Merge pull request #27 from czpython/patch-1

Fixes incompatibility with CMS 2.x