Add new field lastmod in posts

This field is used in sitemap.xml for each post. Pages should be
completed with that as well as now they have a default value only.