add zlog : a hash-key started log system
move common defs to `zdefs.h`