Removed the silly dependency of the editor on the skeleton resources.c
Also changed the way the logging system is deinited.
Fixed a large part of the logging module to use the SDL2 logging facilities.
Fixed a segfault when calling change_state() with a NULL parameter.
(It's not supposed to segfault, since the NULL parameter means the game is done)