Actually applies clips correctly

These version numbers are getting out of hand... Also importing existing
templates now overwrites instead of adding duplicates to the index.
Might allow for merging templates in the future.