Exit on escape

I migrated `window_sdl.py` and `window_pygame.py`'s exit_on_escape functionality to the `WindowBase` class in `__init__.py` and added a callback to `Config`'s kivy/exit_on_escape option so that it could be changed while an app was running without the user having to pay attention to the order of his imports. These changes fix #1634.