Stache performance improvements

This pull request implements the can.Stache performance improvements discussed in and closes #1011.