Being a photographer, and carrying a camera, are often the two things that can get you in and out of some really interesting situations.
For those slightly more “interesting” situations, the ACLU was kind enough to put together some information that I think you all may find pretty darn useful.
http://www.aclu.org/free-speech/know-your-rights-photographers
And now you know, and knowing is half the battle.