move logging library into its own package, add config package, add debug mode
update log statements and use new logging system everywhere
move stringSliceSub to consumers.go, that's where it's used