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.
Is it permissible for a young man and a young woman to enter into a covenant as a married couple without having a true seclusion (Khalwah) until their marriage contract is officially concluded?
The relation which isn`t based on a marriage contract is forbidden, and entering into a covenant as a married couple is unaccounted for and is from the evil suggestions of the devil.
A person owns sheep or goats and occasionally feeds them from the grass in other people's orchards without the owners’ permission. Is it permissible to eat the meat of these animals if invited to do so? Is it permissible to purchase from these sheep whose owner feed them from people's orchards without their permission, and can one accept gifts from them, such as meat or milk?
Yes, it is permissible because the one who is accountable is their owner, and the cost of the grass on his accountability. In addition, in order to be on the safe side you should abstain from eating his products, because his sheep case is as if they were fed on impurities. And Allah Knows Best.
What is the ruling on training dogs that are of benefit?
All perfect praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
This is permissible because Allah The Almighty Says (What means): "They ask thee what is lawful to them (as food). Say: lawful unto you are (all) things good and pure: and what ye have taught your trained hunting animals (to catch) in the manner directed to you by Allah. eat what they catch for you, but pronounce the name of Allah over it: and fear Allah. for Allah is swift in taking account." [Al-Ma`idah/4]. However, it is prohibited to keep dogs for no benefit because Salim reported on the authority of his father that Allah's Apostle (PBUH) said: "He who kept a dog other than one meant for hunting or for watching the herd, lost two qirat of his reward every day." [Moslim]. And Allah The Almighty Knows Best.