Proposal for Support CORS (Cross-Origin Resource Sharing) #216

Add a Filter to handle multiple resources and a Helper to add CORS headers manually.
Duplicated code removed