Properly validate scopes and allow setting of default scopes for resources.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>