Changed debug flag to take a log level name. Added debug as a command to uploaderconsole.