Adding CORS header stuff
PRINT: if there is no Referer, use Origin for IE9
Merge pull request #830 from geoadmin/gjn_cors

Adding CORS support in responses