Invalidate cache header only for published posts

Closes #1563

- Add new updatedAttributes() functionality to base models
- Update Post.edit(...) to pass along _updatedAttributes values
- Add checking for statusChanged to cacheInvalidationHeader()
- Update route tests that check for cache invalidation header