Removed unnecessary surface wrapper, and re-added support for event polling.
Implemented window quit.