Removes duplicate from Gemfile and arranges groups

There were duplicate entries in the Gemfile that were causing warnings. The duplicates were removed and the gems were placed in their correct groups.