Extract logging into its own module, pass priority from Rust to C.
Port eglDestroyContext(), eglDestroySurface(), eglTerminate(),
engine_term_display() to Rust.
Add macro gl_try!, use it everywhere in main.rs.
Port engine_handle_input() to Rust.