Replaced deprecated XML-RPC Jira API with the new REST API.
Fixed messed code after merging which went wrong.
Merge pull request #2 from StefanHennig/master

Replaced deprecated XML-RPC Jira API with the REST based API.