A better ls-remote command, cribbed from deploy_pipeline.py.

Auditors: chris

Test plan:
Fingers crossed