move Credentials from connectors to java.shared
add support for X-CONTAINER-AUTHORIZATION header
add missing return statement