implement JiraApiClient and move some files around