Convert MockWebServer to run on Okio.

Closes #1175.
Going to leave this logic as-is because I like it better anyway.