Add CORS support

fixes #74
Merge pull request #77 from patrickkettner/add-cors

Add CORS support