Add logout URL, fix auth dependencies