I'm not a huge expert, but my impression is that coffee gets stale mainly by exhaling CO2, not by oxidation (although it may oxidize as well), and so you can seal them as well as you want and they'll still go bad after 10-14 days, although not as fast as if you leave them out.
I believe this is why when you pour hot water over freshly-ground, recently-roasted coffee, you see foam come to the top (especially visible in espresso, which they call crema). CO2 emissions.
I don't personally believe in roasting beans myself, since I think real-people roasters are more consistent and accurate than I could ever be, and also I don't think it helps very much to go from 2-8-day-old beans to 5-minute-old beans.