Some minor fixes and compatibility updates

Moved the include line for sscanf2 above YSI includes, it was causing a
console error if filterscripts with sscanf2 weren't loaded.

Moved country commands to game-master only.

Rearranged some chat code and cleaned it up a bit, moved the line
splitting code to a separate function.

Added custom logging to chat and commands, makes administration easier.