Cache the compiled templates.

``get_sources`` caches the list of template sources. This addition
caches the compile Template object as well.

This is done in convert_source because we don't know the cache_key
until we have the template origin path.