Add a logging interface so that users of the library can capture the logs.
Don't bind to interfaces that are down.
Fixe some log statements.