Switch to Gradle build structure

The new gradle build structure allows multiple build configurations,
cleaner building, and overall more awesomeness not available with the
previous build structure and file hierarchy.

Change-Id: I47fd425fb0a414fc7fe3cfc7b908f90c81c35c38