logger: Include repository.h for pid's initialization
srw: Fixed sending command to all states

Instead of sending them to all backends