Migrate to gradle.
Closes Add PMD #1, Add Checkstyle #2.