Change modules to use the MODNAME constant.

The majority of modules were logging with their module name as the log type.

There was a few places which were logging to a non-name type but in my opinion with the exception of CONFIG those messages are so uncommon that it doesn't make sense to use a seperate type for them.