Rewrite / update log.py plugin

This PR:

- Changes uses of % to str.format
- Adds a [SERVER] prefix to all logging messages
- Doesn't actually change input's .chan variable if it doesn't exit
- Other updates that don't affect the plugin's output or effect