Port WM_DELETE_WINDOW from testing branch (see #18)

As it seemed to work there a few weeks back and the same error happens as with
the moving of a window, the source of the error might be something other than
an implementation detail in the SendEvent data value constructed in the
corresponding functions.
Implement first version of the release button bindings

The button that was pressed must still be removed properly from the event
handling.