Fix various bugs in auth_http
Remove to_atoms from auth_http