Merge items loop into one file
Fixes #971 - Now attachments gif and png are saved as png image (gif's attachments are converted to png for preserve transparency). Fix uploaded attachment extension.
issue #971 , some improvements
Merge branch 'issue-971' into hotfixes
Merge branch 'hotfixes' into develop

Conflicts:
	oc-includes/osclass/classes/ImageResizer.php