Move connect method outside of class init to better support unit testing. Add Travis YAML. Update example with connect method.