Is it permissible to swear by (Allah "The Living")?
Yes, it is permissible because "The Living" is one of Allah`s Attributes.
What is the Iddah period upon death of husband? What is the ruling when the woman observing Iddah after death of husband leaves her home to visit relatives although her Iddah hasn`t ended? What is the ruling on her wearing gold during Iddah period?
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.
For a woman whose husband has died, the 'Iddah* is four months and ten days after the death of her husband. If a woman is pregnant, the 'Iddah lasts until she gives birth. Moreover, she has to mourn, not wear gold, perfume nor saffron-colored garment. The evidence on this is that The Prophet (PBUH) said: "It is not lawful for a Muslim woman who believes in Allah and the Last Day to mourn for more than three days, except for her husband, for whom she should mourn for four months and ten days." [Agreed upon]. And Allah The Almighty Knows Best.
*The iddah is a waiting period that a Muslim woman observes after the death of her husband or after a divorce. The Quran says: For those men who die amongst you and leave behind wives, they (the wives) must confine themselves (spend iddah) for four months and ten days.
Does Husband fasting while being impure for having sexual intercourse with his wife at night permissible?
Yes it is permissible for you to fast because impurity isn't among valid fasting conditions, but you are obliged to perform ritual impurity in order to catch up Fajr prayer at its due time. And Allah Knows Best.
Is prayer nullified by having thoughts while performing it?
Prayer isn`t nullified by having thoughts while performing it, provided that the praying person offers all of its pillars and meets all of its conditions. However, the reward decreases significantly in the absence of reverence since a praying person is rewarded according to the attentiveness of his/her heart during prayer.