Set up Auth class and ported command.php to its use