Fix template function.

Take string values with text-properties into account.
Remove trailing trash-code.
Fix iorg-data template.
Add var 'iorg-directory' to iorg.el.
Backup and cleanup iorg.el.
Remove redundant var.
Add IorgForm permission.