Added targets for static code analysis (still, we could grab sonar from somewhere), added link to jenkins and applied some fixes from static code analysis.