s3-auth split the auth_generic functions into a seperate file