Introduce a logging class with KLogger

KLogger is a simple PHP logging class (http://codefury.net/projects/klogger/)
Eventually all uses of echo should be replaced with this logger.