Added subscriptions, tests if set is at sites already. Ready for a test run
Fixed logging in xmldata. Fixed error checking in agent. Fixed bug when selecting sites in agent.
Several bugfixes on agent