Restructure to use gradle-wrapper

See https://github.com/vergenzt/gradle-wrapper-bootstrap.