Use authUrl and adminUrl variables, simplify config references

This is a less than optimal use of global javascript variables for auth
and admin, and should likely be changed in the future.