Events instead of middleware

Conflicts:
	src/Bernard/Producer.php