Calculate Content Length of request

I added a method to calculate the content length of a request.

You can use it by calling

  request.contentLength(function(contentLength) {
    request.set("Content-Length", contentLength);
  });

It automatically considers attachments and field values.
I did not get it to work properly with raw data that was added via send.
Handle no-attachment case. Handle firstBoundary better