Remove Windows line endings
Formatting
Cosmetics
Add functions to define shutdown and blocked connection listeners
Make sure to register connection.blocked listener with the delegate
Docstrings
Remove blocked listener from the delegate
Make core/add-shutdown-listener and core/add-blocked-listener return the listeners they reify

This way listeners can be removed.
Correct return type hints, update docstrings