Migrate repository maintenance to use OptimizeRepository
In the context of &7442 (closed) we're moving ownership of the repository maintenance strategy from Rails into Gitaly. As part of this, the OptimizeRepository will be the single source of truth about how repositories ought to be repacked. We need to migrate Rails to use this RPC instead of the fine-grained RPCs it uses right now.
Edited by Patrick Steinhardt