Add log

Add logging facility + some log operations
Add unknown command event + default listener
Minor cosmetic modifications in numeric replies + test