OAuth: Slightly more progress. Added missing code for --cmd and --term.