logging levels: switch to a per-process model

* the MI "debug" command may change the logging level for one or all
	processes
* global/specific log controlling functions available for core and modules