Purpose of Dumbloedore's Death
I think Dumbledore sacrificed himself for Harry, providing him the same protection from VOldemort as Harry's mother. We know Harry has to be the one to kill Voldemort, so really the only thing DD can do to help Harry is sacrifice himself, giving Harry the only weapon, love (as cheesy as it sounds) that can defeat Voldemort. With this in mind, I believe Snape is still a good guy and killing Dumbledore allows him to keep his double agent position with Voldemort as well as not break the unbreakable vow.