Only validate quota when enabled.

Fixes #141
Refactored the code due to the need to access ServiceConfiguration
instance parameter from RunListResource. So the isQuotaEnabled method
is now a public one and located in Configuration.