Consolidating the HTTP requests into a function will help ensure
consistency when making HTTP requests to the Bluecat gateway, and in a
future commit will make mocking these requests easier
The prefix and suffix for the txt record was not being taken into
account when trying to find an owner for a cname and host record.
In addition, CName records have to be unique values, therefore txt records need to
have either a prefix or suffix included. This fixes the "owner" logic to
ensure when checking a corresponding txt recod against a cname record
that the prefix or suffix is used when comparing records.
Also, correct the response codes for the DELETE calls to Bluecat Gateway
Check status codes when API calls are made for gets and deletes. All of
the creates were done slightly different and will be updated in a
separate commit.