Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
How are gaps filled during congregational prayer?
A praying person is allowed to take two steps in order to fill the gap in the row ahead. If the distance was long and requires much movement, then it is impermissible for one to move to fill it because much consecutive movement (three movements) during prayer invalidates it.
Is it permissible to offer prayer at home, or should it be offered in the mosque?
All perfect praise be to Allah, The Lord of The Worlds. It isn`t preferable for the man to pray at home as praying in the mosque is twenty seven times more rewarding. Therefore, this should motivate him to offer prayers in the mosque. And Allah Knows Best.
A man who was on travel prayed Duhr as four Rakhas upon leaving Tafilah heading to Amman. However, on his way to Amman, he prayed Asir as two Rakhas (Shortened). Is what he did correct from an Islamic perspective?
All perfect praise be to Allah, The Lord of The Worlds. May His blessings and peace be upon our Prophet Mohammad and upon all his family and companions.
What he did is correct; he is liable for nothing before Allah The Almighty, since combining and shortening prayers during travel are two separate concessions. Therefore, it is permissible for a traveler to shorten prayer without combining it with another. And Allah The Almighty Knows Best.