Fix credential-based auth and added travis support.