The above mysteries can be explained by what is known as the Inflation Theory . Results from the detailed studies of the CMBR starting with COBE followed by Boomerang and WMAP have lent strong support to the Inflation theory. To get a handle on the inflation recall that the nature of the four forces of nature changes as the Universe evolves:
The GUTs era is when symmetry was broken for the nuclear (strong) and electro-weak forces. Inflation occurred at this time. During inflation, the scale factor R(t) and the temperature of the Universe evolved as:

In the example, the Universe grows by a factor of more than 1030 in 10-32 sec.
This explains the horizon problem.
Inflation predicts that the Universe should appear flat (that is, Omega = 1, identically). This resolves the flatness problem.