Support formatting commons media links via API

Change-Id: Ibc9bee1c51046366365ea6d259aefaae027b133f
Merge "Support formatting commons media links via API"