FindBugs fixes.
Add findbugs task to main library.
Fix PMD warnings/errors.
Add PMD checks to library.