Added logging facility.
The logging class should replace the System.out.println() calls for more convenience.
I also moved the onDeath delegate to life as it fits there more than directly in the entity.