added gem for CORS

also cleaned gemfile
configured CORS