The Washington Post sez it started out being very naughty and then evolved into a sort-of not-nice expression which is now sufficiently sanitized to be used in polite society.

http://www.washingtonpost.com/wp-dyn/articles/A46032-2005Jan3.html