os / auth api cleanups
Here's a bunch of cleanups in the authentication par of OS layer. Most of it is about unexporting functions that aren't used by (known) drivers/modules.
Scanned all driver source trees to make sure those funcs aren't still in use.