Remove util.py, move methods to where needed

We only need this module for one example.
Remove notify_closed(); we don't need this anywhere
Reformat file
Implement Hub.notify_opened()

Some parts of the event loop may need to call this to be safe and reset any
listeners for file descriptors that have been obsoleted.