added functions and unit tests to coordinator

added unit tests
watchlist flow for tracking damaged workers
cleaned up coordinator and made coordinator_flow to hold functions for processing requests