Just a possiblility: Obama got to be president because his main rival in the Democrat party had large negatives for many Democrats -- even ones who had served in her husband's administration, he was more articulate, on-message and both strategically and tactically focused. And, in the general, he ran against a guy who was not on-message, who made a wreckless choice for Vice President, who couldn't figure out if he was pandering to his base or trying to expand his base AND who had to defend (essentially) a badly run war and an economy going down the toilette.
None of this is to say that Obama will succeed, of course, but it is to say that it is perfectly understandable that Obama beat McCain...indeed, arguably, his race kept his numbers down. Had he been a similarly situated white male (by that I mean, race being the only difference), I suspect his victory would have been a huge landslide...in the 55 to 60 percent of the vote range. As it were, nominally more democratic states...i.e. states like West Virginia, hit hard by the economy but also white...voted heavilly for McCain. States like Missouri, for example...where Obama barely won, or North Carolina, would have gone overwhelmingly for Obama.
In short, Obama won not because of his race, he won because of George Bush, a faltering economy, a badly fought and justified war and an inept Republican candidate and campaign that couldn't figure out the national mood or its messaging.