Use the new gradle android model to clean things up.

This removes a bunch of errounous configurations that were created like
'testAndroidTestCompile'.

As a bonus, also now works without defining applicationId in defaultConfig by
looking in the manifest if it's not defined