Add repo scm

Add support for 'repo' plugin from Android development. Ensure
only settings that actually are required are written out to
the produced XML, and all optional settings aren't included
unless explicitly set.

Change-Id: I662bdd4d348ce7ec7d213e5d7149daf130fda697
Merge "Add repo scm"