Make the jira service version 4 compatible

Jira4 has a far older API which doesn't behave in the same way. This commit should make both version 4 and 5 be usable. Introduced a new boolean variable jira.version4.