What is the ruling on entering the toilet with something containing the remembrance of Allah?
It is disliked to bring into the toilet anything containing a reminder of Allah, such as the Quran or a sacred name (like the name of Allah, Muhammad, etc.). If one does that, etiquette dictates that he conceal it so it is not visible while entering the toilet, either by cupping his hands over it, putting it in his pocket, or inside his shirt if it is a necklace or ring. And Allah the Almighty knows best.
Is a wife considered divorced if her husband refused to go to bed with her (for sexual intercourse) for two months?
A wife doesn`t get divorced no matter for how long her husband refuses to have sex with her, and she had better go to court.
What is the ruling on wiping the head during ablution from behind a barrier like a headscarf (hijab)?
The obligation in ablution is to wipe some of the head; it is not a condition to wipe all of it. As for one who has a turban or headscarf on their head, it is permissible for them to wipe over it after wiping a part of their head in any place. This is easily done at the front of the head. This means the woman begins by wiping the front of her head from under the headscarf, then completes the wiping to the back of the head from over the headscarf. If the woman wipes over the headscarf on her head and the moisture reaches the scalp or some hair within the boundaries of the head, it suffices for wiping the head. And Allah the Almighty knows best.
Does touching one's wife invalidate ablution?
Touching the wife according to the Shafi'ee's doctrine invalidate husband's ablution. And Allah Knows Best.