Use source-repository interface to get git sources.

Update all elements to retrive git via the source-repository element

Change-Id: I59b0abd822d6ab357a96d43ee3dc933fb862c31e
Allow access to metadata api server

Change-Id: Id57e176ec2daa6a0025a9c8ac73f6ef6e654284d