Added support for CORS

Using rack-cors to support CORS calls. NOTE: config/application.rb and
config.routes.rb need to modified to restrict the domains that can
access.
Merge pull request #1 from parampavar/master

Added support for CORS