LYFT-17129 - cherry pick deregister, register and get_instance_health me...

...thods
There's also a salt way of doing this:

```python
from salt._compat import string_types

if isinstance(instances, string_types):
```
It's not a big deal, though, and this is already upstreamed.