Remove multi writer support. Fix thread-safety issues. Copy windows and provide to clients directly with the notification data.
Since the work on #58 (closed), #59 (closed) and #60 (closed) is tightly related and it all has to be implemented for it to work, I will collect it all in this MR.
Includes the following MRs: