url shortener in sinatra