remove unused code and fix wrong variable names - some PHPDoc updated
add BMP mimetype for BMP previews
Merge pull request #7444 from owncloud/fix/7443

remove unused code and fix wrong variable names - some PHPDoc updated