enable access to keystone s3 authentication middleware

fix ordering of commands in S3Api.java