default cacheLifetime to 0 (never expire)
update res.send calls to be compatible with express 4