Add getId to mw.user, returning wgUserId (or 0 for anons).