Actually, the woman marrying her rapist has been interpreted since ancient times by rabbis as this:
A man who rapes a woman has committed a crime that will prevent her from marriage. The rapist therefore must pay her dowry and continue to pay for her for the rest of her life, as well as being unable to divorce her. She does not have to live with him, but he must continue supporting her, and support any children that she bears.
So, it's treated primarily as a crime of property, but that's a pretty huge leap from not being a crime at all.
For the uncleanliness: Sex during periods and anal sex are considered unclean. Consider that these laws were written and handed down to people wandering in the desert, with no soap, few baths, and no condoms. The cleanliness laws are also counted as fulfilled in the New Testament (probably because of the amazing advances in hygiene). Interesting side note, Jews were the only group to largely not die of plagues in medieval Europe, leading them to be accused of witchcraft, because they followed the strictest hygiene practices. Foreskins are also not unclean at all, but the act of cutting one (according to some sources, it was not a complete removal, but a cutting of only the tip of the foreskin) is a sign of devotion to God, and an act of self-sacrifice.
Masturbation is never mentioned. Onan is punished for trying not to get his wife pregnant because of his selfishness. This is another outdated law, where a childless widow would marry her husband's brother in an attempt to have a child, who would be her first husband's legal child. Onan was not happy about this, so he tried to avert the law by practicing coitus interruptus. Apparently he was struck dead for this.
Most mentioned prostitutes are pagan temple prostitutes, making that their particular sin. They are selling sexual services in honor of other gods.
Sodom's crime wasn't sexual deviance. They were already slated for destruction before they started demanding to rape strangers or virgins, because Abraham couldn't find even 10 good men in the entire pair of cities.
Noah cursed his son for seeing him passed out drunk. Being naked was a bonus.
"Temptation" doesn't just refer to sexual temptation. In many cases, the temptation is something else obvious, like riches, fame, or even food. Even the obviously asexual Paul himself admits that sex within a marriage is grand and should be done as often as possible.
So... there are places it is negative (mostly involving Paul, who was almost certainly asexual himself, and didn't understand the whole physical temptation thing), and plenty of places where it's positive (Song of Solomon, which is nothing but erotic poetry). It does need to be read in the context of it's time, and the Old Testament is very helpful with notes from rabbis, rather than evangelical preachers.