Applying quota directly to swift rather than waiting for the next cron
Fixing potential typo
Large refactor of quotas library.
Rename used to calculate_used