CSPACE-5678: Added service properties generation and fixed a few problems with term and auth ref generation.