An url shortener service in scala