src: handle _NET_CLOSE_WINDOW root message

- It emits CloseWindow event when the message is received.
- Add close_window method to be used by window managers. It supports
  the WM_DELETE_WINDOW protocol.
- Add a send_client_message function for window managers.
Yes, we have to move the events parser from core to a different file and then we can also expose the event types