Output to log files now. Fixes issue #9
log file name to have db_ddoc_module.log as name. also make log messages more consistant