The old Imam's palace in Wadi Dhahr outside Sana'a resembles a gingerbread house perched on top of a rock.