Adding 'Access-Control-Max-Age' CORS header

Header added for caching of the preflight request. Currently using a cache of seven days.

For more details, take a look at [AGPUSH-343](https://issues.jboss.org/browse/AGPUSH-343)