Smarty compile fix; Optional cache prefixes

* check_compile != force_compile

* add hooks to prefix cache keys – $cfg['environment'] by default, in case you're running two disparate instances of a thing on the same machine/memcache instance