Use PMD ruleset from trunk
Fix PMD warnings
Add basic XML rules