Added variable for cache age

Now set to update if cache is older than 15 mins.
Added variable "cacheMaxAge" which can be defined to any number of seconds. It's only used it one place currently, but might be worth having in future.