Fix credential-based auth and added travis support.

## Purpose
We should produce high code quality in our libraries. This includes continuous integration and test-first strategies.