Work with more edge-cases

* When no backends are returned from select_backend hook, load all the backends
* When the "master" backend is not in the list of backends, reply asap.
* Lots of code docs