Move to gradle build system

Delete maven, move code around to conform better to the gradle way of
doing things.