Added a CORS middleware and allowedDomain config option.
Merge pull request #1 from wprater/master

CORS Middleware and config