Added support for compiled templates to be cached

In order to eliminate the need for compiled templates to be loaded from filesystem each time one is requested I've added "static caching" (maybe a bit unfortunate naming?).

It caches output from compiled template and stores it into cache specified by user (by passing object that implements static cache interface). Included is memcached support.

At the moment it does lack proper definition of ttl for each template cached.