Implement events' unregister()
Currently, the events mechanism allows for registering and replacing callbacks for events. We shoudl implement:
- An unregistering function.
- A fallback mechanism for when the server tries to send events to registered ports which are not available anymore.
(from redmine: created on 2013-06-02, closed on 2013-06-22)