url shortener in scala