What can a Contract do for You?

I have been reading a bit about things like contracts, stipulations, and protocol within a BDSM relationship. These seem to be more common in D/s relationships, but that doesn’t necessarily mean that you can’t make use of some part of them, no matter what your relationship status.  First, I would like to make sure everyone knows what, exactly, the subtle differences are between those three...