Add global templates cache

Template function compillation is handled on every view creation. As we do not modify templates throughout creation-disposal cycles, we can store it in global cache in Chaplin.mediator.
There will be no mem leaks 'cause template function is stored as View attribute, and they get deleted upon disposal.