Less naive implementation of body size trimming that only reads in 1 megabyte and a byte in the case of a missing or lying content length. Also a bit of refactoring and commenting in the capture-request namespace.