* Making the template cache persistent.
* Added argument cache_enabled to enable/disable the template
  cache.
* Fixed undefined values warning in templates. Added // ''.
* Added line numbers to the template code.