[TAV-480] Refactor output port downloading.

This is literally just a code moving and renaming exercise to make downloading
a port more generic.
[TAV-480] Add a method to download input ports.