master: Implement quota accounting and enforcement

Count disk space and inodes allocated to users and enforce quotas.

Change-Id: I2ed42a392b893cd62ef18c17ab7402630c3dcc0d