Update Flight for changed tfupload.

Updated flight.php for the new tfupload section of the workflow where
the build outcome is notified and copied to the clipboard. Tidied and
added comments to the other php files.