Mark some internal functions as local
Disable debug spam when not in use

This allows debug mode to be used for troubleshooting without getting
thousands of messages!
Fix bad copy/paste
Support for disabling RareShare when in a coalesced group
Another function that should've been local
External debug log helper
Improved error messages and a TODO