Change the StateFactory naming to follow conventional CamelCase

Previously states like "postgres_user" ended up being named
Postgres_user, which isn't very Pythonic. Now it becomes PostgresUser,
which is much nicer.
Merge pull request #10663 from borgstrom/pyobjects_nomenclature

Change the StateFactory naming to follow conventional CamelCase (pyobjects)