Update compatability to all Projects

Add support for all types of hudson.model.Project and hudson.matrix.MatrixProject instead of just FreeStyle Projects. 
This is in need for supporting https://github.com/alexouzounis/jenkins-inheritance-plugin