Make PDF generator and prepare mechanism for send it by email.
Merge remote-tracking branch 'origin/version_4' into version_4