Major refactor of entire web service. Entity categories are now top
level packages.