Merge changes I980a1f05,I896d25aa,I7db26b74,Ie2f6c15e,I9df627ef, ...

* changes:
  Simplify more discovery functions
  Simplify handling discoverable timeout
  Simplify scan mode handling
  Move more permission checks into the binder stub
  Simplify IO capability handling
  Simplify checking for system or active or managed users