Cwave edit destroy

Started ajaxifying the photo edit feature. I'll be in at about noon to finish it.