Framework for handling logins. Correct command queueing to support preempt.