Added edit post model.

Removed transaction stuff from models -- done withing the model.