The primaries have been a fascinating fracas between establishment politicos and upstart outsiders. But when the dust settles, the winners will face a mountain of problems.