issue #216 - Support for CORS.
Comments from @adennie taken into account - get allowed methods from the server resource.
Add CorsService.