A very important topic that many find difficult to speak of.  I favor composting myself.  There is much useful information at 
Recompose
 It is currently legal in Washington, Colorado, and Oregon and very close is a few others.  I know that New York is considering legislation.  I have buried an alpaca and my canine companion of 14 years, Barley, on my farm, but they were not composted first and I understand that composting is much more thorough than a green burial.