Move onInput events to Character class

Character class now (in a very primitive way) reacts to input.

Also, the world has now a changed flag, so that the rendering can occur
only if something has moved.
Refactor player into a separate class
Refactor NPCs into a separate class
Git ignore makefile
Add example makefile