Add API authentication helper.

This is a small helper service that takes Basic Auth credentials and turns them into custom HTTP headers that an API can look at.

Eventually this will grow to support OAuth credentials instead (but probably not in this PR).
These helpers should probably be named `assert_<whatever>` to better indicate what they do. (I was confused when I first read the tests because they didn't seem to be asserting anything.)