Ported more commands, cleaned up authentication in login/register commands.