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.