Revert commit 9aa7a10db6e3cf4

Reversed changes made by commit '9aa7a10db6e3cf4', by moving the
said logger functions: number, string, logtype etc. to their original
place - log.c. As 'log.c' logger routines shall be shared by both
resolver as well as root server tools.

This will help to define consistent log format & to unify the logger
sources. The server logger 'qlog.c' shall be deprecated.
Revert commit b06164c01d3c400

Reversed changes made by commit 'b06164c01d3c400', by redefining
the logger routines: number, string, logtype etc. These shall be
reused & shared by both client as well as root server tools.
Another logger 'qlog.[ch]' shall be deprecated in future. This'll
help to unify & maintain the logger routines in one place.

Also changed prototype of functions: log_query, log_querydone and
couple of others to accept query number 'qnum' parameter by value
instead of by reference. There is no use for qnum's reference.
Update logger routine calls

Updated various client & server tools to modify their logger
routine calls to supply query number 'qnum' parameter by value
instead of by reference. As there is no use for this reference.
Read data.cdb ones during initialisation

Changed the 'respond' routine in 'tdlookup.c' to initialise the
'struct cdb' object ones before serving the very first client request.
Subsequently, the server serves client's requests from its memory,
instead of opening & closing the data.cdb file for each query.

The server will need to be restarted when its data file changes.
Replace 'qlog.c' with 'log.c' logger

Modified Makefile.am to replace 'qlog.c' with 'log.c' logger.
'log.c' has unified all the logger routines used by both client &
server tools. 'qlog.c' shall be deprecated in future.