CORE-4637: converted the notification_set table to use a sequence to generate IDs
CORE-4720 Fixed app_count function results.

Added the DISTINCT clause to the App hid count, since the same App may appear in more than group.
CORE-4720 Added conversion for app_count fix.
CORE-4637: added ID sequences to several more tables
CORE-4637: don't rely on hard-coded primary keys when associating value types with other entities
CORE-4637: added ID sequences for two more tables
CORE-4637: added an ID sequence for the rule_type table and removed hard-coded primary keys from the initialization file for the rule_type table
CORE-4637: added an ID sequence for the rule_subtype table and removed hard-coded primary key values from the initialization file for the rule_subtype table
CORE-4637: added ID sequences for the rest of the tables
CORE-4637: added a version to the init script for the version table