Update app to the Gradle Build system.

Used Andriod studio to change the project to gradle build this changed
all of the files in the project. Also reform mated the code so it
follows my style.