BasicConfigKey: support type with generics
Add policy config to REST api

- And renames ConfigResource to EntityConfigResource, and adds
  abstract super type also extended by PolicyConfigResource.
AutoScalerPolicy to use ConfigKeys