There were some internet cafes wherever we travelled - including Marrakesh - though, as we never needed one and so never entered, all I can report is that they are certainly not as plush as the Thailand ones.

We were very careful with food (previous bad experiences with street / cheap cafe food in Egypt and Tunisia) so only ate in the hotel (in any case, the best deals for Morocco seem to be half-board or full-board ones).

Sorry I can't be more helpful!