MouseButtonUp and MouseMove fixes

MouseMove no longer leaves the window borders when the cursor is
invisible. MouseButtonUp events are now reported even when they occur
outside the window. This aligns SDL2 behavior with the native drivers.
Improved debugging messages

Exceptions that occur in the example process are now logged.