Add quota support to server (#4799).
Add quota resource (#4799).
Rename LockResource file.