moses/mserver: implemented logger with logrotate ; clean-up and documentation of code