Adds code that handles non-JSON responses from the Hanlon RESTful API.
These changes are critical for ensuring that the same error handling code is used
with *all* responses from the Hanlon RESTful API (including the text response from
the /config/ipxe endpoint).