REST-41. Add support for CORS.

Global cross-origin resource sharing can be turned on with:
"cors": "true"
in the configuration.yml.

issue: https://jira.kiji.org/browse/REST-41
review: https://review.kiji.org/r/1601