Slight compatibility fixes for Vagrant 1.3 and Ansible 1.3.

Replace old only_if syntax with the new when syntax in Ansible and
update apt_repository to call update_cache automatically.
Setup Travis CI, delegate test database from environment.