Massive update

Resource classes where required to support properties
URL encoding where required for names with spaces
Added api method "constants" for ContestCategory and Type