Implement JS based URL shortening workflow

The form based one will be retained for non JS clients, while
the JS based one will be the primary interface.

Change-Id: Ibf51b00516b06b30665839e6e75e71d1735195a2
Merge "Implement JS based URL shortening workflow"