Moved cache control to HAPI class. Added methods for setting cache response headers and cache duration.