[TAV-466] Add port metadata to JSON output.

Needed for Scratchpads integration. Added MIME type and size fields to the
output descriptions in JSON.