Add DEBUG flag to enable/disable debugging output

- Replace all debugging print() calls with debugprint() calls
- Wrap debugprint() calls in --@debug@/--@end-debug@ so CurseForge
packager comments them out