How many Rak`ahs (unit of prayer) are offered in Witr prayer?
All perfect praise be to Allah, The Lord of The Worlds Witr (an odd number prayer performed between Isha`a and Fajr) is offered with a minimum of one Rak`ah, and a maximum of eleven, but offering three Rak`ahs is the minimum of its complete form. And Allah Knows Best.
How does a praying person prostrate?
All perfect praise be to Allah,The Lord of The Worlds It is from Sunnah that he/she sits with both knees on the ground in order to prostrate, then hands, nose and forehead are placed on the same place. In addition, the toes have to touch the ground, and be directed towards the Qiblah (direction of Ka`bah) during prostration. And Allah Knows Best.
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.
Does wiping over one's socks during ablution permissible?
If the socks were thick, then wiping over them during ablution is permissible so long as wiping conditions are observed. And Allah Knows Best.