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: I3a3665b98d72512df7430d5135a85556016bc831