implement some admin handling, improve addResourceLine
move requestTicket and deleteAllCookies to login.js, update to new auth paths