WIP - Partial migration to Jira's REST API, for use with Hosted Jira

This isn't finished yet, but a start.