CORS support
Remove hardcoded api credentials
allow CORS options to be set in config
Merge pull request #755 from amdprophet/cors

CORS support