Added feature where, after a user edits a post, they will be taken back to that post on the '/user/history' upon exiting the edit page. Reworked some error checking in the posts controller. Tried to thin out the posts controller by moving certain functions to the Post library.