Register cgame cvars as early as possible.

This avoids the options menu showing incorrect defaults for a fresh install
before a game is started.
Minor bot-reporting fix.
Skip whitespace after a command terminator.

This allows code elsewhere to correctly assume that there's no leading whitespace.
Add FSEEK_END and negative offsets for FS_Tell.

Note, this worked for the text file I tested, but not sure how it will perform in other tests.
refactor more code into their own functions and do some additional cleanup
Merge remote-tracking branch 'upstream/master' into refactor/console