CHOP-3. Configure build to use checkstyle, findbugs, and scalastyle.

This commit modifies chopsticks to build with checks from checkstyle,
findbugs, and scalastyle. Changes are made to code so that checks pass.