Introducing CORS support.

This is a minimum viable solution in order to get cors support working in cougar.

It is meant for discussion and to help improve getting to a good enough state to be merged.
I don't actually like the use of getters here - it's inconsistent with the rest of the codebase and I find it harder to read - please use the member variables directly.