Yaml debugging
Minor changes to the auth handling
Minor tweaks to the internals for auth/login.