Gradle plugin: Add missing data and restli-client dependencies to javadoc task classpath. Add test and clean up source code.

RB=175771
R=gogenc,jbetz,slim,si-dev
A=gogenc