The constant $c$ is the speed of light, namely the constant
$$ c= 299,792,458\,\,{\rm m/s} $$
exactly (using the current definition of a meter and a second). As David mentions, it is called the speed of light only because light was the first entity that was known to move by that speed. But it is also the speed of gravitons or anything else that moves by the maximum speed. It is the most important value of a speed in the Universe.
It appears in the relationship between mass and energy – which is valid for nuclear bombs, thermonuclear bombs, particle accelerators, stars, as well as everything else in this Universe – because $c$ is a fundamental universal constant that is important everywhere in the basic laws of this Universe. That's a conclusion (and partly also assumption) of the special theory of relativity by Albert Einstein. For example, the speed of light in the vacuum is always measured to be the same, regardless of the speed of the source and the observer, and it is the maximum speed that can be achieved by information (or "almost" achieved by moving matter).
Mature physicists understand that the conserved mass and conserved energy are really the same thing and only one independent quantity of this kind is conserved; mass may be converted via $E=mc^2$ and vice versa. After all, adult physicists (in particle physics and other fields that depend on relativity) often use units in which $c=1$. One light second and one second is fundamentally the same thing. The fact that $c$ has an awkward numerical value in SI units is just because the SI units (and other units) carry an awkward cultural baggage. Fundamentally, $c$ is very clean and crisp and it should be $c=1$. In these units, $E=m$ simply holds. Mass and energy is the same thing, when converted by the natural conversion factor.
For beginners or historically, there are various ways to derive $E=mc^2$. Einstein was considering an accelerating mass object. He did work ${\rm d}E$ on this object of rest mass $M_0$ which increased its velocity $v$. One may prove that the inertial mass of the object $M$ also had to increase by ${\rm d}M={\rm d}E/c^2$ for certain things to work – i.e. to prevent the mass object from surpassing the speed of light by extra acceleration.
The keyword you should look for if you want to understand $E=mc^2$ is the "special theory of relativity", the broader theory implying $E=mc^2$ and other things and discovered by Einstein's 1905 paper.
Let me add a caricature of the explanation which contains all the relevant things. Special relativity shows that various things – time, distance – get inflated or contracted by the Lorentz factor of
$$ \gamma = \frac{1}{\sqrt{1-v^2/c^2}} >1 $$
That's also true for the mass. If you accept that the total mass is
$$ M = M_0\gamma $$
where $M_0$ is the rest mass, then you may Taylor expand the total $Mc^2$ for small $v$
$$ Mc^2 = M_0 c^2 + \frac{1}{2} M_0 v^2 + \dots $$
So the first subleading term is exactly the usual kinetic energy from Newton's world, $M_0v^2/2$, but there's also an even greater term, the latent energy stored in the rest mass, $M_0 c^2$. This latent energy is constant for "non-nuclear" processes that don't change the internal character of the matter. Because it's constant, this term in the energy is physically inconsequential. Then the most important term is the kinetic energy $mv^2/2$, and it has the right coefficient assuming we have $E=mc^2$ to start with. However, $M_0c^2$ is there and it may get changed to other forms of energy if we do change the fundamental character of matter, e.g. if we split uranium nuclei to other nuclei. Relativity guarantees that we release $E=\delta m\cdot c^2$ of energy where $\delta m$ is the change of the rest mass of the radioactive matter.