factored out URL shortener

Signed-off-by: Jonathan E. Magen <jonathan@wework.com>