The Board is directed in the operation of any dam or reservoir in its possession and control to regulate the stream flow primarily for the purposes of promoting navigation and controlling floods. So far as may be consistent with such purposes, the Board is authorized to provide and operate facilities for the generation of electric energy at any such dam for the use of the Corporation and for the use of the United States or any agency thereof, and the Board is further authorized, whenever an opportunity is afforded, to provide and operate facilities for the generation of electric energy in order to avoid the waste of water power, to transmit and market such power as in this chapter provided, and thereby, so far as may be practicable, to assist in liquidating the cost or aid in the maintenance of the projects of the Authority.