Theory of Quantum Degenerate Gases