Test proxying API requests
Refactor ProxyServer test TestFileServing.

Most importantly, close httptest.Server on test exit.