Added quick-and-dirty mode to capture failed multipart PUTs

For use in diagnosing couchbase/couchbase-lite-ios#61
Set environment var "GatewayDebugMultipart" to enable. On error parsing
multipart PUT request, body will be dumped to file "GatewayPUT.mime"
in the current directory.