Switch to CircleCI

* Add a CircleCI configuration file.
* Fix up some tests to work properly in their environment.

The primary motivator for this is that we cannot run any sizeable images in
the UML instance we have to use to run Docker in TravisCI. The test for the
new SSL functionality doesn't work with those restrictions.