Set edit link in PHP instead of JS for new post.
Update jshint config.
Fix post lock.