Added trigger logic for state alerts. Comms state alert agent test.
IA are sa tests.
Merge pull request #982 from newbrough/preload_external_data

Preload external data
update test, work on start agent service
update service in line with tests