Merge pull request #944 from thingthing/3.2-I4123

Change to  restricted parameter in api usage (closes #4123, closes #4128)
Export docid logicalname in htmltext attribute (refs #4152)
Export image in htmltext attribute (refs #4151)
Add PU for image and file export (refs #4151)