add CORS support to all API endpoints.
Merge pull request #33 from Samnsparky/cors

Cors