Rewrote the renderer, using a custom SDL binding instead of SFML.

All the obvious bugs have been removed, some small ones might remain of
course.