RESTful client support via Thorax

This merges in all Thorax work done so far. The original code is in the [restful_client](https://github.com/pophealth/popHealth/tree/restful_client) branch, though that doesn't merge cleanly.