My Take:
I don't have a problem accepting Jesus going into the wilderness and probably praying and contemplating, but I'm not much one to accept the issue about the devil. Instead, this could be another throw-back to the experiences of Moses and the people in the Exodus, with the frustrations and temptations that they and he had to endure.
Even though both Judaism and Christianity are linear in their theology, there's many "loops" in that line-- "flashbacks" of sorts. This is especially a reoccurring theme in the early chapters of Matthew.
Moving to the town of Capernaum I tend to believe is both symbolic and real. On the symbolic side, there's that this relatively small town whereas it was prophesied that the Northern Kingdom would be reunited, although that happened in reality much earlier on. However, this I believe is likely another "loop" of sorts. BTW, I did visit it in 1991 and saw what they know know with certainty was Peter's house where Jesus also stayed, whereas the synagogue was only maybe 40 yards or so away. That was quite a find.
The attraction towards and commitment of the "common people" permeates the gospels, which is really quite a radical concept both back then and even nowadays. A prevailing belief then was that if you had God's pleasure, good things would happen to you. Instead, Jesus attacks the powerful and the wealthy but praises the laborers, the poor, and the outcastes (some people today should remind their pastors of that), and then makes leaders out of them! Whaaaaaaaaaaaaa!
Finally, I've never much been a proponent of faith healers, but I do believe prayer and people can help one to heal, or at least make their suffering and death more acceptable. I've been married for 51 years-- oh, I'd better stop here.