Setup sonar and jacoco; clean up reported issues