Added event clean-up code.
Added CL errcode checks.
Layout fix: @return without params.
Ported 2.x's event handling using GLFW callbacks. Additionally, added support for window resizing.