Added method to get Jenkins version

I have added a method to get version of the Jenkins instance along with unittests for the method. The version information is obtained by querying the 'X-Jenkins' field in the headers returned by the Jenkins instance. This is the approach suggested in Jenkins documentation to get version information[1].

1. https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API