Run go fmt
Parse origin whitelist flags as slice of regexps
Add origin whitelist as flags

And pass them as a list of *regexp.Regexp to the loader.Loader