Add a logger for each model

Conflicts:
	trytond/ir/cron.py
	trytond/ir/ui/view.py
Add log when encoding is invalid
Monitor: log modified modules and error

And minor reformatting.

Conflicts:
	trytond/monitor.py