Make the new page context processor backward compatible with older projects.
Fix some deprecation warnings: mimetype -> content_type