Updates all templates to use the latest version of gradle and adds support for multiDexEnabled, specifying compile version, and updates repositories code.
am: 134b52aa14

Change-Id: I8e6a48845ab0667964b6e6d5a36e24cdfea133fb