Renames REST resources and tests.
Updated encoding.