[FEATURE] Basic support for cache header

Extends the ResourceDefinition by a "cacheLifetime" property
that sends a "Cache-Control: max-age" cache control header if present.

Usage::

 'someResource':
   cache:
     lifetime: 123 # TTL in seconds