Adds warnings for uncallable handlers in hooks/events.

Adds units for the warnings.
Injects logger into events/hooks services.
Ensures logger, events, and hooks are setup in right order in service provider.
Fixes small bug in DI container.