Add quota support common bits (#4799).
Add simple quota limit on client (#4799).
Add quota support to server (#4799).
Add quota resource (#4799).
Rename LockResource file.