Change modules to use the MODNAME constant when logging.

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 those messages are so uncommon that it doesn't make sense to use a seperate type for them.