Refactored some services, created a Configuration class and the basic skeleton of the AlertManager