hook and library indexes should be members of callout and library handles
Currently current_index_ and current_library_ are members of managers, not handles, so can changed if another callout is called or hook library is loaded. To summary they are not reentrant nor thread-safe.
The only hairy point is the command_process callout which is called when a command is processed.