inlineKnockoutTemplates: Remove all extensions when deriving the template id from the file name.

This is needed for an up-and-coming change in assetgraph-builder that runs cloneForEachLocale before inlineKnockoutTemplates so that some templates will have a .<localeId>.ko extension.