support for custom template cache keys via tplKey fn

This feature allows a `tplKey` function to be defined in the config, allowing custom $templateCache keys to be used.