Standardize comments in os.module

Comments only, except 2 instances of parameter rename.

#### Changes

* use standard hook param names (hook_library, hook_library_alter)
* don't document parameters for hook implementations
* Always include "Implements HOOK()." as single-line summary of function doc block
* Remove extraneous whitespace
* Document unused code