Add missing 'rack' gem

This fixes LOGSTASH-1918 and adds test coverage.