fix getVersion call
fix quota calculation
Merge pull request #1890 from owncloud/trashbin_fix

fix quota calculation for trash bin and versions