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.
It is nice that we can get rid of this hack but are we really keeping the semantics?