What is the torment of the grave?
We seek refuge in Allah from the torment of the grave. The important point is that the cause of the torment of the grave is disbelief or committing sins without repentance. It affects the soul, and the body is impacted by it, even if we do not see it. And Allah Knows Best.
Is prayer mandatory on a dying person who goes through a state of unconsciousness, then wakes up?
If he wakes up and was conscious, then he should pray the way/manner he could, but if he wasn't, then he is exempted from obligatory prayer as Allah Says in this regard (What means): "On no soul doth God Place a burden greater than it can bear." [Al-Baqarah/286].
Does fasting on behalf of a deceased person permissible?
Fasting on belhaf of a deceased person is permissible, since the Prophet (PBUH) said: "Whoever dies while he still has some fasts to make up (of the days of Ramadan), then his heir (any of them) should fast on his behalf." [Agreed upon]. The previous answer is for making up missed obligatory fasts on behalf of the deceased. But if the fasting on behlaf of the deceased was for performing a voluntary acts of devotion such as fasting....is permissible as adopted by the majority of Muslim scholars and based on the above hadith as they stated "Every good dead intended to be on behalf of the deceased its reward will reach the latter." And Allah Knows Best.
Should a pregnant woman who broke fast because of pregnancy make it up, and is a ransom due on her?
The pregnant and the suckling, if they fear for their health, may break their fast and make up for it, and no ransom is due on them. However, if they broke fast in fear for the fetus and the baby, then they are obliged to make up for it, and pay the ransom which is feeding a needy person for each of the missed fasting days. And Allah Knows Best.