I think some of the confusion is because we normally think of mass as an inherent property of objects, a fundamental measure of how much stuff there is in something. At least in this context, that's not a very good way to think of it.
Mass is not weight, and mass is not matter. Mass is a particular property of matter, formally defined by Newton's second law, F = ma. (The force applied to an object is equal to its mass multiplied by the acceleration caused by that force.) So what Saiph said is correct - from the perspective of physics, mass *is* an object's resistance to acceleration.
The really strange thing is that relativity says that a particular object's mass is not the same for all observers. So, for example, if one person on Earth were to measure the mass of an object, let's say an asteroid, and another person on a spaceship traveling past Earth at near the speed of light were to measure the mass of the same asteroid, they would get different answers. Because of this, we often need to specify what frame of reference we're using when talking about mass, and the most common distinction is between apparent mass - the mass of something from a particular observer's point of view - and rest mass - the mass of something from the point of view of an observer at the same energy as the object. So, a compressed spring has a greater apparent mass then an uncompressed spring, but the same rest mass, and a hot potato has a larger apparent mass then a cold potato, but the same rest mass. In fact, adding energy to a system in any form will always increase that system's apparent mass.
Now, we don't see this effect in everyday life because the changes in apparent mass caused by changes of energy of the scale we normally deal with is very very small. Remember that in E = mc^2 that c is a really really big number.
Apparent mass and rest mass are a bit like the apparent magnitude and absolute magnitude of stars in astronomy. Apparent magnitude is how bright a particular star looks from our point of view here on Earth, and absolute magnitude is what a star's apparent magnitude would be under particular conditions, specifically if you were looking at the star from a specified distance.
One small technical side note - in classical physics, there were actually two different definitions of mass. Inertial mass, which I described above, and gravitational mass. For centuries it was a great mystery why inertial and gravitational mass are the same, it wasn't until Einstein's geometric interpretation of gravity in general relativity that was explained.