Fix build broken by Cap'n Proto changes.
Implement PUT and DELETE requests, and fix a bunch of bugs.