Add API module for generating shorturls

Change-Id: Ied90fb61ba4a13c77139b5ba9f7efe25421bc814