Simplify command line and options processing.

Remove some special case flag processing and rely on commander.js more.
Move referrer option from System to options.js.
Looks the same to me as the previous code. What do you want here? I'll change the rest to match.