Add CORS suport.

- Based on Swift implementation.
- Implements blueprint cors-support.

Change-Id: I398b30eb07c26bf416c4fae15748581537de8024