Add a test for a previous regression that was missed, fix regression
proper, abstracted handling of CORS; ability to allow multiple origins
Merge pull request #45 from rcrowley/corsrefactor

Corsrefactor