added edit functionality, and apparently its been too long since I sommited, so added restful delete.