use jira api instead of parsing the html output

a proof of concept for using jira api instead of parsing the html output.
resulting json is parsed with regexp for now (should use proper json support), and only one error message would be properly retrieved (although i could not cause more to appear anyway)