You can use DFhack to spawn water which will put out the fires.
Just (l)ook on the square you want to spawn water on, type 'liquids' into DFhack's console window, hit enter and it will give you a new line of text - you are now using the liquids plugin.
It should say magma at the beginning followed by some other numbers and letters, including a 7. You want to press 'w' and then enter to make it spawn water not magma. Then hit enter to spawn the water.
Once in the liquids sub-section, typing '?' will bring up a list of the possible commands. Also, type 'q' to quit liquids and return to the dfhack console.
All you need to do once you have spawned the water is unpause, the water will spread out like liquids do, put out the fire and allow you to move again.
WARNING: this spawned water can still freeze, so be careful to not get any on your adventurers tile.
But if you do find yourself trapped inside a box of ice, you can use dfhacks liquid command to spawn obsidian floors with 'of' which will replace the ice with rough obsidian floors.
As for healing yourself, if you (l)ook at yourself, (you may have to view yourself too), type 'dfusion' into dfhack, it will bring up a few options, pick misc by entering the number it is listed next to(i think it's 3), this will take you to another menu of numbers, heal unit should be 5.
That should heal you back up perfectly.
As for surviving after that, that depends on you and your enemies... Good luck!