Added CORS support

Added CORS support through a filter to allow resources to be requested from other domains. This is important if your client and your server do not reside on the same server or are running on different ports. 
Please note that filter is not being called for some reason but it has to do with how you've configured your project. If you can take a look at it and see why it's not being called. Otherwise it's very straightforward.