generic referral-server, using Ruby and Sinatra