Prepare for dynamically loaded stuff with context.c and render.c
Get rid of header includes as much as we can, and use the new
context.h && render.h api. Also implement better repaint mechanism
through event loop.