Slug updated during save if title is updated and post is not published

closes #1176
- added updating of slug with title value in saving method in post.js
- update is triggered only if slug has not been changed manually and if
  post is not published or is being published with the current save