Enforce repository size limit across all projects and groups, includes LFS objects in that limit.

Merged Patricio Cano requested to merge repository-size-restrictions into master

Limit can be set globally, and overridden per group, and/or project.

Backend functionality is there and comprehensive tests are included, but there is still some frontend work to be done and documentation to be added. I'm submitting early for review as we are close to the release.

@DouweM @dbalexandre I'd appreciate it if you both could start with the review while I finish the documentation and the missing frontend parts.

/cc @JobV @regisF

Fixes #559 (closed)

Replaces gitlab-org/gitlab-ce!6020

Screenshots (see gitlab-org/gitlab-ce!6020 for more)

Screen_Shot_2016-09-18_at_9.55.38_PM

Screen_Shot_2016-09-18_at_9.57.12_PM

Screen_Shot_2016-09-18_at_9.58.03_PM

Screen_Shot_2016-09-19_at_1.44.19_PM