Add versions of global Swift functions that can be used with the |> operator.

-   Moved overloads of |> operator for WriteableStreamType to Stream.swift.

Note: it takes forever to compile if you put too many |> operators in a row.
pathForTestResource still won't work outside of a method (6.1 beta 2).
Clean up double spaces.