remove forced lowercase from extension, fix #4747, also coding style fixes
Merge pull request #7183 from owncloud/remove-force-lowercase

remove forced lowercase from extension, fix #4747