Remove ActionListener::getListenerRegistry()

It is unused: No element is ever added to the registry.
Make sure the MouseCursorHandler does not leak
Code formatting