v2.14: update State api field with list of values for presence
v2.14: allow callflow to include presence-id to update and presence-state to set
v2.14: retry compaction after sleep when connection failed
v2.14: logout agent if no queues remain logged in to
v2.11: don't cast rates and surcharges to integers when calculating cost