fixed reset task

The reset task now makes a template reset instead of an index reset. It
can also be used to just create a template. This behavior makes more
sense than the previous behavior since the rake tasks are organized
around templates rather than indices.