Add the option to pull a particular branch of an extension.

This is needed when working on older MW.

Change-Id: Ic86e557cd2de8566c532e3fe0edae8be9b4bbbfe