Make upgrade actually work

Pass a flag to _install_one to allow the second install to go through if
it is called through an upgrade.
Add test suite
Add Travis CI configuration