First-principles time-dependent quantum transport theory