set version of gem "thin" in Gemfile; code cleanup