Implements support for rack-cors for API JavaScript access in the end-user browser

Hi,
following the post here (http://meta.discourse.org/t/cross-origin-resource-sharing-for-api-access-in-javascript/6067), here is the CORS support.

:blush: 

Thanks.